mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
codegen.c: peephole optimization OP_MOVE after OP_AREF.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user