From f119f08aa254d4e98211ade88b8c415fba3746fb Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 21 Nov 2025 17:40:42 +0100 Subject: ir: implement dominator tree computation --- ir/dump.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ir/dump.c') diff --git a/ir/dump.c b/ir/dump.c index f7d005c..7e7d650 100644 --- a/ir/dump.c +++ b/ir/dump.c @@ -219,6 +219,9 @@ dumpblk(struct function *fn, struct block *blk) bfmt(out, " @%d", blkpred(blk, i)->id); } } + if (fn->prop & FNDOM && blk->idom) { + bfmt(out, "\t; idom: @%d", blk->idom->id); + } ioputc(out, '\n'); for (i = 0; i < blk->phi.n; ++i) { struct instr *phi = &instrtab[blk->phi.p[i]]; -- cgit v1.2.3