From fd5bdaff40f93546009e1ec854fd26df01e78f22 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 30 Apr 2024 15:25:17 +0300 Subject: correct addr + Doesn't quite implement stack handling fully as of yet, but slowly getting there --- src/opt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/opt.c') diff --git a/src/opt.c b/src/opt.c index dac19a6..426663a 100644 --- a/src/opt.c +++ b/src/opt.c @@ -9,13 +9,13 @@ void optimize(struct fn *f) printf("\n// initial:\n"); dump_function(f); - /* unreachability is done in several steps I guess */ - size_t ri = ssa(f); - printf("\n// after SSA:\n"); + f->ntmp = correct(f, f->ntmp); + printf("\n// corrections:\n"); dump_function(f); - correct(f, ri); - printf("\n// corrections:\n"); + /* unreachability is done in several steps I guess */ + ssa(f); + printf("\n// after SSA:\n"); dump_function(f); abi0(f); -- cgit v1.3