aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-01-09 21:56:26 +0100
committerlemon <lsof@mailbox.org>2026-01-09 21:56:26 +0100
commitfbfaec4b5146553c117787947eb81da43271ed74 (patch)
treeacb194791a47d4dfa44141141a7c011debae0289
parentbef7d9b99e3300ecbf6d530b6dbf0709bff60973 (diff)
ir/simpl: stub out some code that wasn't properly tested and broken
I'll figure it out later, but I better not have a broken trunk
-rw-r--r--ir/simpl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/simpl.c b/ir/simpl.c
index 3aca00e..2b3870c 100644
--- a/ir/simpl.c
+++ b/ir/simpl.c
@@ -260,6 +260,7 @@ simpl(struct function *fn)
inschange += ins(&instrtab[blk->ins.p[curi]], blk, &curi);
}
+#if 0 // FIXME
if (blk->s2 && isintcon(blk->jmp.arg[0])) {
/* simplify known conditional branch */
struct block *s = intconval(blk->jmp.arg[0]) ? blk->s1 : blk->s2;
@@ -274,6 +275,7 @@ simpl(struct function *fn)
}
goto DoIns;
}
+#endif
/* thread jumps.. */
if (!blk->phi.n && !blk->ins.n) {