aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@gcc.gnu.org>2013-08-29 21:06:08 +0000
committerXinliang David Li <davidxl@gcc.gnu.org>2013-08-29 21:06:08 +0000
commit9cc1fb4b07fc0bda772841cd7528139e3361db4b (patch)
tree1a7d2a084ca87df8b177164420d01e13f4a895c0 /gcc/loop-unroll.c
parent753c498921726cece24fa1e56402f9a8e8034b28 (diff)
downloadgcc-9cc1fb4b07fc0bda772841cd7528139e3361db4b.zip
gcc-9cc1fb4b07fc0bda772841cd7528139e3361db4b.tar.gz
gcc-9cc1fb4b07fc0bda772841cd7528139e3361db4b.tar.bz2
New vectorizer messages; message format change.
From-SVN: r202088
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r--gcc/loop-unroll.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c
index fa02601..ad26f3d 100644
--- a/gcc/loop-unroll.c
+++ b/gcc/loop-unroll.c
@@ -225,7 +225,7 @@ report_unroll_peel (struct loop *loop, location_t locus)
&& !loop->lpt_decision.times)
{
dump_printf_loc (report_flags, locus,
- "Turned loop into non-loop; it never loops.\n");
+ "loop turned into non-loop; it never loops.\n");
return;
}
@@ -236,13 +236,16 @@ report_unroll_peel (struct loop *loop, location_t locus)
else if (loop->header->count)
niters = expected_loop_iterations (loop);
- dump_printf_loc (report_flags, locus,
- "%s loop %d times",
- (loop->lpt_decision.decision == LPT_PEEL_COMPLETELY
- ? "Completely unroll"
- : (loop->lpt_decision.decision == LPT_PEEL_SIMPLE
- ? "Peel" : "Unroll")),
- loop->lpt_decision.times);
+ if (loop->lpt_decision.decision == LPT_PEEL_COMPLETELY)
+ dump_printf_loc (report_flags, locus,
+ "loop with %d iterations completely unrolled",
+ loop->lpt_decision.times + 1);
+ else
+ dump_printf_loc (report_flags, locus,
+ "loop %s %d times",
+ (loop->lpt_decision.decision == LPT_PEEL_SIMPLE
+ ? "peeled" : "unrolled"),
+ loop->lpt_decision.times);
if (profile_info)
dump_printf (report_flags,
" (header execution count %d",