mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
bit more peephole optimization for NODE_LVAR
This commit is contained in:
+1
-1
@@ -1844,7 +1844,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
int idx = lv_idx(s, sym(tree));
|
||||
|
||||
if (idx > 0) {
|
||||
genop(s, MKOP_AB(OP_MOVE, cursp(), idx));
|
||||
genop_peep(s, MKOP_AB(OP_MOVE, cursp(), idx), NOVAL);
|
||||
}
|
||||
else {
|
||||
int lv = 0;
|
||||
|
||||
Reference in New Issue
Block a user