aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/regalloc.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-16 19:23:33 +0100
committerlemon <lsof@mailbox.org>2025-12-16 19:23:33 +0100
commit842f49f34464440abb2799ef007959cc5e8b7cf8 (patch)
tree244c590779b6d9c90a7d13d946e63238fa909dd7 /ir/regalloc.c
parentb3762f81b1a276f06bace301d56c9e8f6538058d (diff)
x86-64/emit: implement single-exit-point ret with jump threading
Diffstat (limited to 'ir/regalloc.c')
-rw-r--r--ir/regalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/regalloc.c b/ir/regalloc.c
index 691793e..794cdd6 100644
--- a/ir/regalloc.c
+++ b/ir/regalloc.c
@@ -1233,6 +1233,8 @@ fini(struct rega *ra)
freeblk(fn, blk);
--id;
}
+ } else if (allnops) {
+ vfree(&blk->ins);
}
} while ((blk = blk->lnext) != fn->entry);
}