mirror of
git://c9x.me/qbe.git
synced 2026-04-07 02:49:47 +00:00
minor change in rpo walking
This commit is contained in:
parent
75eb0c3224
commit
dcf07ba55c
@ -47,10 +47,10 @@ rporec(Blk *b, int x)
|
|||||||
if (b->id >= 0)
|
if (b->id >= 0)
|
||||||
return x;
|
return x;
|
||||||
b->id = 1;
|
b->id = 1;
|
||||||
if (b->s1)
|
|
||||||
x = rporec(b->s1, x);
|
|
||||||
if (b->s2)
|
if (b->s2)
|
||||||
x = rporec(b->s2, x);
|
x = rporec(b->s2, x);
|
||||||
|
if (b->s1)
|
||||||
|
x = rporec(b->s1, x);
|
||||||
b->id = x;
|
b->id = x;
|
||||||
assert(x >= 0);
|
assert(x >= 0);
|
||||||
return x - 1;
|
return x - 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user