mirror of
git://c9x.me/qbe.git
synced 2026-04-07 19:09:48 +00:00
simplify tests for hd
This commit is contained in:
parent
1891a810e8
commit
7202c7dedf
@ -234,13 +234,11 @@ spill(Fn *fn)
|
|||||||
k = 4 - !req(b->jmp.arg, R);
|
k = 4 - !req(b->jmp.arg, R);
|
||||||
v = (Bits){{0}};
|
v = (Bits){{0}};
|
||||||
hd = 0;
|
hd = 0;
|
||||||
if (s1) {
|
if (s1 && s1->id <= n)
|
||||||
if (s1->id <= n)
|
|
||||||
hd = s1;
|
hd = s1;
|
||||||
if (s2 && s2->id <= n)
|
if (s2 && s2->id <= n)
|
||||||
if (!hd || s2->id >= hd->id)
|
if (!hd || s2->id >= hd->id)
|
||||||
hd = s2;
|
hd = s2;
|
||||||
}
|
|
||||||
if (hd) {
|
if (hd) {
|
||||||
/* back-edge */
|
/* back-edge */
|
||||||
pl = hd->nlive;
|
pl = hd->nlive;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user