mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
peephole optimization for LOADNIL before STRCAT; ref #3110
This commit is contained in:
@@ -339,6 +339,12 @@ genop_peep(codegen_scope *s, mrb_code i, int val)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (c0 == OP_LOADNIL) {
|
||||
if (GETARG_B(i) == GETARG_A(i0)) {
|
||||
s->pc--;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case OP_JMPIF:
|
||||
case OP_JMPNOT:
|
||||
|
||||
Reference in New Issue
Block a user