diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-26 17:19:52 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-26 17:19:52 +0900 |
| commit | 5bf327497fad0b30475649190626b8646b613bb4 (patch) | |
| tree | a9304bba6655b49236bd121c73dcfb6dbaa5765c /src | |
| parent | 773097d3a880c90be38b10cd0d686b415b824670 (diff) | |
| download | mruby-5bf327497fad0b30475649190626b8646b613bb4.tar.gz mruby-5bf327497fad0b30475649190626b8646b613bb4.zip | |
bit more peephole optimization for NODE_LVAR
Diffstat (limited to 'src')
| -rw-r--r-- | src/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c index 2733e8a13..43490b184 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -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; |
