From 0f8532d4e7315b86e160abf4ced461e7678b5587 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Apr 2024 01:29:12 +0300 Subject: add features that make machine generation easier --- src/opt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/opt.c') diff --git a/src/opt.c b/src/opt.c index 882587d..dac19a6 100644 --- a/src/opt.c +++ b/src/opt.c @@ -2,7 +2,6 @@ #include #include -#include #include void optimize(struct fn *f) @@ -11,10 +10,14 @@ void optimize(struct fn *f) dump_function(f); /* unreachability is done in several steps I guess */ - ssa(f); + size_t ri = ssa(f); printf("\n// after SSA:\n"); dump_function(f); + correct(f, ri); + printf("\n// corrections:\n"); + dump_function(f); + abi0(f); printf("\n// after abi0:\n"); dump_function(f); -- cgit v1.3