From e7f33cf8732a7f747fed494759cd315aef32f388 Mon Sep 17 00:00:00 2001 From: gganesh Date: Mon, 2 Dec 2013 07:27:14 +0000 Subject: Check TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205580 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/loop-unroll.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/loop-unroll.c') diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c index 9c871678f6b..557915fafbc 100644 --- a/gcc/loop-unroll.c +++ b/gcc/loop-unroll.c @@ -664,6 +664,9 @@ decide_unroll_constant_iterations (struct loop *loop, int flags) if (nunroll > (unsigned) 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. */ if (nunroll <= 1) { -- cgit v1.2.1