diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2019-05-02 21:13:27 +0200 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2019-05-02 21:15:30 +0200 |
commit | 84b889c6ef536de35ac0360d28c057c8548a42c1 (patch) | |
tree | f0ee48bdbe42b4a3bce0c38b070b6e60ef3b8ef7 /main.c | |
parent | 34fee80e690986175ba9417802fad69fb5b821db (diff) | |
download | roux-84b889c6ef536de35ac0360d28c057c8548a42c1.tar.gz |
move fillloop() after fold()
SCCP is currently the one and only pass which seriously affects control flow; so we must compute loop costs afterwards.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c index 99ab330..56529c9 100644 --- a/main.c +++ b/main.c @@ -69,7 +69,6 @@ func(Fn *fn) ssa(fn); filluse(fn); ssacheck(fn); - fillloop(fn); fillalias(fn); loadopt(fn); filluse(fn); @@ -83,6 +82,7 @@ func(Fn *fn) T.isel(fn); fillrpo(fn); filllive(fn); + fillloop(fn); fillcost(fn); spill(fn); rega(fn); |