mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
codegen.c: add peephole optimization for OP_LOADI16 before OP_MOVE.
This commit is contained in:
@@ -479,7 +479,7 @@ gen_move(codegen_scope *s, uint16_t dst, uint16_t src, int nopeep)
|
||||
s->pc = s->lastpc;
|
||||
genop_1(s, data.insn, dst);
|
||||
break;
|
||||
case OP_LOADI: case OP_LOADINEG:
|
||||
case OP_LOADI: case OP_LOADINEG: case OP_LOADI16:
|
||||
case OP_LOADL: case OP_LOADSYM:
|
||||
case OP_GETGV: case OP_GETSV: case OP_GETIV: case OP_GETCV:
|
||||
case OP_GETCONST: case OP_STRING:
|
||||
|
||||
Reference in New Issue
Block a user