aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2013-05-15 15:26:38 +0000
committerTeresa Johnson <tejohnson@gcc.gnu.org>2013-05-15 15:26:38 +0000
commitad4db775e2c6fb42129048c0de213fa6f1cd98e3 (patch)
tree08c840f5ce58a2af369867f00866164450b7c4fe
parentaf205f678d2d6ac9043daa70c4caefdd76cd65bc (diff)
downloadgcc-ad4db775e2c6fb42129048c0de213fa6f1cd98e3.zip
gcc-ad4db775e2c6fb42129048c0de213fa6f1cd98e3.tar.gz
gcc-ad4db775e2c6fb42129048c0de213fa6f1cd98e3.tar.bz2
loop-unroll.c (report_unroll_peel): Check decision before emitting unroll/peel message.
2013-05-15 Teresa Johnson <tejohnson@google.com> * loop-unroll.c (report_unroll_peel): Check decision before emitting unroll/peel message. From-SVN: r198936
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/loop-unroll.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fb7da456..9eed4a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2013-05-15 Teresa Johnson <tejohnson@google.com>
+ * loop-unroll.c (report_unroll_peel): Check decision before
+ emitting unroll/peel message.
+
+2013-05-15 Teresa Johnson <tejohnson@google.com>
+
* function.h (has_bb_partition): New rtl_data flag.
(bb_reorder_complete): Ditto.
* cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c
index 41d9e5f..d03dc3d 100644
--- a/gcc/loop-unroll.c
+++ b/gcc/loop-unroll.c
@@ -212,6 +212,9 @@ report_unroll_peel (struct loop *loop, location_t locus)
int niters = 0;
int report_flags = MSG_OPTIMIZED_LOCATIONS | TDF_RTL | TDF_DETAILS;
+ if (loop->lpt_decision.decision == LPT_NONE)
+ return;
+
if (!dump_enabled_p ())
return;