loop-unroll.c (report_unroll_peel): Check decision before emitting unroll/peel message.
authorTeresa Johnson <tejohnson@google.com>
Wed, 15 May 2013 15:26:38 +0000 (15:26 +0000)
committerTeresa Johnson <tejohnson@gcc.gnu.org>
Wed, 15 May 2013 15:26:38 +0000 (15:26 +0000)
2013-05-15  Teresa Johnson  <tejohnson@google.com>

* loop-unroll.c (report_unroll_peel): Check decision before
        emitting unroll/peel message.

From-SVN: r198936

gcc/ChangeLog
gcc/loop-unroll.c

index fb7da45..9eed4a9 100644 (file)
@@ -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
index 41d9e5f..d03dc3d 100644 (file)
@@ -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;