qbe

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

commit dcf07ba55c437b892f4a73a8e513d7adacdf0e2b
parent 75eb0c32248ddad6c8c26637c58d9a50aa619a2d
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri,  7 Aug 2015 19:53:46 -0400

minor change in rpo walking

Diffstat:
Mlisc/ssa.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisc/ssa.c b/lisc/ssa.c @@ -47,10 +47,10 @@ rporec(Blk *b, int x) if (b->id >= 0) return x; b->id = 1; - if (b->s1) - x = rporec(b->s1, x); if (b->s2) x = rporec(b->s2, x); + if (b->s1) + x = rporec(b->s1, x); b->id = x; assert(x >= 0); return x - 1;