qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 84b889c6ef536de35ac0360d28c057c8548a42c1
parent 34fee80e690986175ba9417802fad69fb5b821db
Author: Quentin Carbonneaux <quentin@c9x.me>
Date:   Thu,  2 May 2019 21:13:27 +0200

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:
Mmain.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);