tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message for max-completely-peeled-insns limit.

* tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
	for max-completely-peeled-insns limit.

From-SVN: r217601
This commit is contained in:
Eric Botcazou 2014-11-15 12:06:23 +00:00 committed by Eric Botcazou
parent ddc05d1165
commit d03f2c17a2
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
for max-completely-peeled-insns limit.
2014-11-14 Jan Hubicka <hubicka@ucw.cz>
* ipa-prop.h (ipa_known_type_data): Remove.

View File

@ -674,7 +674,7 @@ try_unroll_loop_completely (struct loop *loop,
HOST_WIDE_INT maxiter,
location_t locus)
{
unsigned HOST_WIDE_INT n_unroll = 0, ninsns, max_unroll, unr_insns;
unsigned HOST_WIDE_INT n_unroll = 0, ninsns, unr_insns;
gimple cond;
struct loop_size size;
bool n_unroll_found = false;
@ -720,9 +720,14 @@ try_unroll_loop_completely (struct loop *loop,
if (!n_unroll_found)
return false;
max_unroll = PARAM_VALUE (PARAM_MAX_COMPLETELY_PEEL_TIMES);
if (n_unroll > max_unroll)
return false;
if (n_unroll > (unsigned) PARAM_VALUE (PARAM_MAX_COMPLETELY_PEEL_TIMES))
{
if (dump_file && (dump_flags & TDF_DETAILS))
fprintf (dump_file, "Not unrolling loop %d "
"(--param max-completely-peeled-times limit reached).\n",
loop->num);
return false;
}
if (!edge_to_cancel)
edge_to_cancel = loop_edge_to_cancel (loop);