Commit df0f3392 by Ganesh Gopalasubramanian Committed by Ganesh Gopalasubramanian

Check TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor

From-SVN: r205580
parent 62ca1b14
2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
* loop-unroll.c (decide_unroll_constant_iterations): Check macro
TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
2013-12-01 Eric Botcazou <ebotcazou@adacore.com> 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
* config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
...@@ -664,6 +664,9 @@ decide_unroll_constant_iterations (struct loop *loop, int flags) ...@@ -664,6 +664,9 @@ decide_unroll_constant_iterations (struct loop *loop, int flags)
if (nunroll > (unsigned) PARAM_VALUE (PARAM_MAX_UNROLL_TIMES)) if (nunroll > (unsigned) PARAM_VALUE (PARAM_MAX_UNROLL_TIMES))
nunroll = PARAM_VALUE (PARAM_MAX_UNROLL_TIMES); nunroll = PARAM_VALUE (PARAM_MAX_UNROLL_TIMES);
if (targetm.loop_unroll_adjust)
nunroll = targetm.loop_unroll_adjust (nunroll, loop);
/* Skip big loops. */ /* Skip big loops. */
if (nunroll <= 1) if (nunroll <= 1)
{ {
......
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