Revert "codegen.c: exit headless case early if a condition is always true"

This reverts commit e5b32e559860073632fc7b69cb98b90f2c069e81; ref #5815
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-10-28 15:54:40 +09:00
parent 604d7e9c86
commit 9ff247c5c2
-19
View File
@@ -2606,25 +2606,6 @@ codegen(codegen_scope *s, node *tree, int val)
}
tree = tree->cdr;
while (tree) {
if (!head) {
n = tree->car->car;
while (n) {
if (true_always(n->car)) {
codegen(s, tree->car->cdr, val);
if (val) pop();
uint32_t pos = cursp();
if (pos3 != JMPLINK_START) dispatch_linked(s, pos3);
if (val) {
if (cursp() != pos) {
gen_move(s, cursp(), pos, 0);
}
push();
}
goto exit;
}
n = n->cdr;
}
}
n = tree->car->car;
pos1 = pos2 = JMPLINK_START;
while (n) {