Commit d03f2c17 by Eric Botcazou Committed by Eric Botcazou

tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message for…

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
parent ddc05d11
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.
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment