summaryrefslogtreecommitdiff
path: root/gcc/modulo-sched.c
diff options
context:
space:
mode:
authorRevital Eres <revital.eres@linaro.org>2011-04-17 14:32:24 +0000
committerRevital Eres <revitale@gcc.gnu.org>2011-04-17 14:32:24 +0000
commit3e2fdd240f8000068f78fd76898f4700ed2926ca (patch)
tree178a2d3b3d6ca230bdeb547cccdce2742154fb11 /gcc/modulo-sched.c
parent4c0f767939eb659b721f9222cf7bdacd0194310b (diff)
downloadgcc-3e2fdd240f8000068f78fd76898f4700ed2926ca.tar.gz
New flag to apply SMS when SC equals 1
From-SVN: r172610
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r--gcc/modulo-sched.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c
index 73317444ff7..f37d743e287 100644
--- a/gcc/modulo-sched.c
+++ b/gcc/modulo-sched.c
@@ -1162,9 +1162,10 @@ sms_schedule (void)
gcc_assert(stage_count >= 1);
}
- /* Stage count of 1 means that there is no interleaving between
- iterations, let the scheduling passes do the job. */
- if (stage_count <= 1
+ /* The default value of PARAM_SMS_MIN_SC is 2 as stage count of
+ 1 means that there is no interleaving between iterations thus
+ we let the scheduling passes do the job in this case. */
+ if (stage_count < (unsigned) PARAM_VALUE (PARAM_SMS_MIN_SC)
|| (count_init && (loop_count <= stage_count))
|| (flag_branch_probabilities && (trip_count <= stage_count)))
{