codegen.c: peephole optimization OP_MOVE after OP_AREF.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-10-09 13:31:07 +09:00
parent bec074e6a3
commit 87b673fc9a
+1
View File
@@ -619,6 +619,7 @@ gen_move(codegen_scope *s, uint16_t dst, uint16_t src, int nopeep)
genop_2SS(s, data.insn, dst, i);
}
return;
case OP_AREF:
case OP_GETUPVAR:
if (data.a != src || data.a < s->nlocals) goto normal;
rewind_pc(s);