commit 7202c7dedfcd274130cd15549e620a9b8513ef3f parent 1891a810e82268260891352afd6b0bd2757b02cd Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 22 Jul 2015 05:33:45 -0400 simplify tests for hd Diffstat:
| M | lisc/spill.c | | | 12 | +++++------- |
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/lisc/spill.c b/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;