diff options
| author | 2026-03-16 12:15:13 +0100 | |
|---|---|---|
| committer | 2026-03-16 12:15:13 +0100 | |
| commit | 3e83c4280f0b1d72774c522a7e0d135913151b56 (patch) | |
| tree | bd80eeae4386e269d09aeaf18590d306c83c646d /ir/dump.c | |
| parent | 5e6f97a1cadb1a1f8a1ed7cb4bd44bd1c79c150a (diff) | |
ir: blk loop index for spill cost
Diffstat (limited to 'ir/dump.c')
| -rw-r--r-- | ir/dump.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -237,9 +237,10 @@ dumpblk(struct function *fn, struct block *blk) bfmt(out, " @%d", blkpred(blk, i)->id); } } - if (fn->prop & FNDOM && blk->idom) { + if (fn->prop & FNDOM && blk->idom) bfmt(out, "\t; idom: @%d", blk->idom->id); - } + if (blk->loop) + bfmt(out, "\t; loop depth: %d", blk->loop); ioputc(out, '\n'); for (i = 0; i < blk->phi.n; ++i) { struct instr *phi = &instrtab[blk->phi.p[i]]; |