diff options
Diffstat (limited to 'gcc-4.6/gcc/tree-ssa-loop-ivcanon.c')
-rw-r--r-- | gcc-4.6/gcc/tree-ssa-loop-ivcanon.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/tree-ssa-loop-ivcanon.c b/gcc-4.6/gcc/tree-ssa-loop-ivcanon.c index 3c4cc77..eed7b6f 100644 --- a/gcc-4.6/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc-4.6/gcc/tree-ssa-loop-ivcanon.c @@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. If not see #include "flags.h" #include "tree-inline.h" #include "target.h" +#include "diagnostic.h" /* Specifies types of loops that may be unrolled. */ @@ -443,6 +444,16 @@ try_unroll_loop_completely (struct loop *loop, fprintf (dump_file, "Unrolled loop %d completely by factor %d.\n", loop->num, (int) n_unroll); + if (flag_opt_info >= OPT_INFO_MIN) + { + location_t locus; + locus = gimple_location (cond); + + inform (locus, "Completely Unroll loop by %d (header execution count %d)", + (int) n_unroll, + (int) loop->header->count); + } + return true; } |