aboutsummaryrefslogtreecommitdiffhomepage
path: root/regalloc.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-05 09:32:17 +0200
committerlemon <lsof@mailbox.org>2023-06-05 09:32:17 +0200
commitefc0cf8039cbff5e0f0d52fd7414c7186129b6ac (patch)
tree27aabd39ebe1c778f052edaf7088eded379f0108 /regalloc.c
parent6ce2ac20e1d9095281a233aeb778d0fa2c82dd74 (diff)
command line switch for debug options
Diffstat (limited to 'regalloc.c')
-rw-r--r--regalloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/regalloc.c b/regalloc.c
index 92d2b30..5810079 100644
--- a/regalloc.c
+++ b/regalloc.c
@@ -110,6 +110,11 @@ regalloc(struct function *fn)
if (ins->r.t) use(blk, ins->op, hint1, &ins->r);
}
} while ((blk = blk->lprev) != last);
+
+ if (ccopt.dbg.r) {
+ efmt("after regalloc:\n");
+ irdump(fn, fn->name);
+ }
}
/* vim:set ts=3 sw=3 expandtab: */