mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
fix loop header detection bug in spill
This commit is contained in:
parent
8c92b12485
commit
238bc89271
4
spill.c
4
spill.c
@ -352,9 +352,9 @@ spill(Fn *fn)
|
|||||||
s1 = b->s1;
|
s1 = b->s1;
|
||||||
s2 = b->s2;
|
s2 = b->s2;
|
||||||
hd = 0;
|
hd = 0;
|
||||||
if (s1 && s1->id <= n)
|
if (s1 && s1->id <= b->id)
|
||||||
hd = s1;
|
hd = s1;
|
||||||
if (s2 && s2->id <= n)
|
if (s2 && s2->id <= b->id)
|
||||||
if (!hd || s2->id >= hd->id)
|
if (!hd || s2->id >= hd->id)
|
||||||
hd = s2;
|
hd = s2;
|
||||||
r = 0;
|
r = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user