diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-30 15:25:17 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-30 15:25:17 +0300 |
| commit | fd5bdaff40f93546009e1ec854fd26df01e78f22 (patch) | |
| tree | 2750eff7430b62d790292df238595a22e3f02616 /src/opt.c | |
| parent | cb71bb6ad44d5e6ea4d4af4896c23088957cbdb3 (diff) | |
| download | qbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.tar.gz qbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.zip | |
correct addr
+ Doesn't quite implement stack handling fully as of yet,
but slowly getting there
Diffstat (limited to 'src/opt.c')
| -rw-r--r-- | src/opt.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |
