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
This commit is contained in:
Teresa Johnson 2013-05-15 15:26:38 +00:00 committed by Teresa Johnson
parent af205f678d
commit ad4db775e2
2 changed files with 8 additions and 0 deletions

View 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.

View 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;