summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2019-05-02 21:13:27 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2019-05-02 21:15:30 +0200
commit84b889c6ef536de35ac0360d28c057c8548a42c1 (patch)
treef0ee48bdbe42b4a3bce0c38b070b6e60ef3b8ef7 /main.c
parent34fee80e690986175ba9417802fad69fb5b821db (diff)
downloadroux-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.c2
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);