eliminate unused hash expression more aggresively

parent 1bab7bc5
......@@ -1327,13 +1327,13 @@ codegen(codegen_scope *s, node *tree, int val)
int len = 0;
while (tree) {
codegen(s, tree->car->car, VAL);
codegen(s, tree->car->cdr, VAL);
codegen(s, tree->car->car, val);
codegen(s, tree->car->cdr, val);
len++;
tree = tree->cdr;
}
pop_n(len*2);
if (val) {
pop_n(len*2);
genop(s, MKOP_ABC(OP_HASH, cursp(), cursp(), len));
push();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment