bufgix
authorDaniel Grund <grund@cs.uni-saarland.de>
Wed, 14 Dec 2005 13:28:25 +0000 (13:28 +0000)
committerDaniel Grund <grund@cs.uni-saarland.de>
Wed, 14 Dec 2005 13:28:25 +0000 (13:28 +0000)
ir/be/becopyheur.c

index 357452c..bf75e77 100644 (file)
@@ -441,7 +441,7 @@ static INLINE void qnode_max_ind_set(qnode_t *qn, const unit_t *ou) {
                for (i=0; i<unsafe_count; ++i) {
                        bitset_set(best, i);
                        /* check if it is a stable set */
-                       for (o=bitset_next_set(best, 0); o!=-1 && o<i; o=bitset_next_set(best, o+1))
+                       for (o=bitset_next_set(best, 0); o!=-1 && o<=i; o=bitset_next_set(best, o+1))
                                if (qnode_are_conflicting(qn, unsafe[i], unsafe[o])) {
                                        bitset_clear(best, i); /* clear the bit and try next one */
                                        break;