diff options
| author | 2025-11-21 17:40:42 +0100 | |
|---|---|---|
| committer | 2025-11-21 17:40:42 +0100 | |
| commit | f119f08aa254d4e98211ade88b8c415fba3746fb (patch) | |
| tree | e1614aa477f51be25e1d1268febe482190b5b9f5 /ir/dump.c | |
| parent | 87f9753fb776a1fa6e59baef759e4687fb9a1ac7 (diff) | |
ir: implement dominator tree computation
Diffstat (limited to 'ir/dump.c')
| -rw-r--r-- | ir/dump.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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]]; |