codegen.c: add peephole optimization for OP_LOADI16 before OP_MOVE.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-07-21 07:54:08 +09:00
parent 275fe8c94b
commit 28bf950e01
+1 -1
View File
@@ -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: