mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
too much peephole optimization; close #1992
This commit is contained in:
+5
-2
@@ -276,8 +276,11 @@ genop_peep(codegen_scope *s, mrb_code i, int val)
|
||||
case OP_RETURN:
|
||||
return 0;
|
||||
case OP_MOVE:
|
||||
s->iseq[s->pc-1] = MKOP_AB(OP_RETURN, GETARG_B(i0), OP_R_NORMAL);
|
||||
return 0;
|
||||
if (GETARG_A(i0) >= s->nlocals) {
|
||||
s->iseq[s->pc-1] = MKOP_AB(OP_RETURN, GETARG_B(i0), OP_R_NORMAL);
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case OP_SETIV:
|
||||
case OP_SETCV:
|
||||
case OP_SETCONST:
|
||||
|
||||
Reference in New Issue
Block a user