bechordal: Remove impossible case from get_decisive_partner_regs().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 24 Nov 2012 15:10:42 +0000 (16:10 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 24 Nov 2012 15:50:39 +0000 (16:50 +0100)
o2 gets determined from o1, so o1 cannot be null.

ir/be/bechordal.c

index 08ced27..8f66793 100644 (file)
@@ -90,9 +90,6 @@ static int get_next_free_reg(const be_chordal_alloc_env_t *alloc_env, bitset_t *
 
 static bitset_t const *get_decisive_partner_regs(const be_operand_t *o1, const be_operand_t *o2)
 {
-       if (!o1)
-               return o2->regs;
-
        if (!o2)
                return o1->regs;