modulo-sched.c (sms_schedule): stage_count <= 1 as correct comparison to skip unprofitable schedule

2009-07-16  Bingfeng Mei  <bmei@broadcom.com>

	* modulo-sched.c (sms_schedule): stage_count <= 1 as correct comparison
        to skip unprofitable schedule

From-SVN: r149712
This commit is contained in:
Bingfeng Mei 2009-07-16 16:20:28 +00:00 committed by Bingfeng Mei
parent a4452ba2e3
commit db87b56d20
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-07-16 Bingfeng Mei <bmei@broadcom.com>
* modulo-sched.c (sms_schedule): stage_count <= 1 as correct comparison
to skip unprofitable schedule
2009-07-16 Simon Baldwin <simonb@google.com> 2009-07-16 Simon Baldwin <simonb@google.com>
* gcc.c (option_map): New flag -no-canonical-prefixes. * gcc.c (option_map): New flag -no-canonical-prefixes.

View File

@ -1157,12 +1157,14 @@ sms_schedule (void)
ps = sms_schedule_by_order (g, mii, maxii, node_order); ps = sms_schedule_by_order (g, mii, maxii, node_order);
if (ps) if (ps){
stage_count = PS_STAGE_COUNT (ps); stage_count = PS_STAGE_COUNT (ps);
gcc_assert(stage_count >= 1);
}
/* Stage count of 1 means that there is no interleaving between /* Stage count of 1 means that there is no interleaving between
iterations, let the scheduling passes do the job. */ iterations, let the scheduling passes do the job. */
if (stage_count < 1 if (stage_count <= 1
|| (count_init && (loop_count <= stage_count)) || (count_init && (loop_count <= stage_count))
|| (flag_branch_probabilities && (trip_count <= stage_count))) || (flag_branch_probabilities && (trip_count <= stage_count)))
{ {