diff options
author | tejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-15 15:26:38 +0000 |
---|---|---|
committer | tejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-15 15:26:38 +0000 |
commit | 830b796a141c3fd1da7954dc955d2d63f6fc1ea7 (patch) | |
tree | 08c840f5ce58a2af369867f00866164450b7c4fe /gcc/loop-unroll.c | |
parent | 812ca88eb4a3baf471a15f850fcb7cf124c26fc1 (diff) | |
download | gcc-830b796a141c3fd1da7954dc955d2d63f6fc1ea7.tar.gz |
2013-05-15 Teresa Johnson <tejohnson@google.com>
* loop-unroll.c (report_unroll_peel): Check decision before
emitting unroll/peel message.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r-- | gcc/loop-unroll.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |