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