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 fb7da45617345d376b2cd96f53d0b217a2c7dbc5..9eed4a9e63dd88f17f8dc9fb226d8875c1ccf5c3 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 41d9e5f0fadbe2407d4f9d1936fa31d6930c54ce..d03dc3d40296b6edec407abeffac2d6b72821dda 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;