From: Teresa Johnson Date: Wed, 15 May 2013 15:26:38 +0000 (+0000) Subject: loop-unroll.c (report_unroll_peel): Check decision before emitting unroll/peel message. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad4db775e2c6fb42129048c0de213fa6f1cd98e3;p=gcc.git loop-unroll.c (report_unroll_peel): Check decision before emitting unroll/peel message. 2013-05-15 Teresa Johnson * loop-unroll.c (report_unroll_peel): Check decision before emitting unroll/peel message. From-SVN: r198936 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb7da456173..9eed4a9e63d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-05-15 Teresa Johnson + + * loop-unroll.c (report_unroll_peel): Check decision before + emitting unroll/peel message. + 2013-05-15 Teresa Johnson * function.h (has_bb_partition): New rtl_data flag. diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c index 41d9e5f0fad..d03dc3d4029 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;