diff options
| author | 2025-12-20 17:42:30 +0100 | |
|---|---|---|
| committer | 2025-12-20 17:42:30 +0100 | |
| commit | 771554e39c047eec8e0451c5d8d7adbf990d356c (patch) | |
| tree | cf9b10f44a6cd451746dd519684c6c646c951b87 /ir/ir.c | |
| parent | 96779975f3b8c73e6e1f1e5a07c8c2e386f353ae (diff) | |
backend: general simplification pass skeleton
Diffstat (limited to 'ir/ir.c')
| -rw-r--r-- | ir/ir.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -221,7 +221,7 @@ addpred(struct block *blk, struct block *p) xbpush(&blk->_pred, &blk->npred, p); } -static void +void delpred(struct block *blk, struct block *p) { for (int i = 0; i < blk->npred; ++i) { @@ -640,6 +640,9 @@ irfini(struct function *fn) mem2reg(fn); copyopt(fn); } + if (ccopt.o >= OPT1) { + simpl(fn); + } if (ccopt.dbg.o) { bfmt(ccopt.dbgout, "<< Before isel >>\n"); irdump(fn); |