summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/sel-sched-ir.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9afbb8dc673..6b9bc1c534d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-26 Marek Polacek <polacek@redhat.com>
+
+ PR c/61271
+ * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
+
2014-08-26 Evandro Menezes <e.menezes@samsung.com>
* config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
index c36658f15c4..dd777fa6bcf 100644
--- a/gcc/sel-sched-ir.c
+++ b/gcc/sel-sched-ir.c
@@ -6185,7 +6185,7 @@ make_regions_from_the_rest (void)
FOR_EACH_BB_FN (bb, cfun)
{
- if (bb->loop_father && !bb->loop_father->num == 0
+ if (bb->loop_father && bb->loop_father->num != 0
&& !(bb->flags & BB_IRREDUCIBLE_LOOP))
loop_hdr[bb->index] = bb->loop_father->num;
}