summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-23 00:38:13 +0000
committerjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-23 00:38:13 +0000
commit8658e08626b301a519308b806f52f93afce6ae03 (patch)
treef19a82621c5689bbcd86c5c3323f03caa5df1ea5 /gcc/haifa-sched.c
parent62f6c27e9967f2816fe3aa73d93a321846e8d225 (diff)
downloadgcc-8658e08626b301a519308b806f52f93afce6ae03.tar.gz
PR rtl-optimization/37360
* config/mips/mips.c (cached_can_issue_more): New local variable. (mips_sched_reorder_1): New. (mips_sched_reorder): Use mips_sched_reorder_1. (mips_sched_reorder2): New. (mips_variable_issue): Set cached_can_issue_more. (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2 instead of mips_sched_reorder. Revert 2008-09-09 Andrey Belevantsev <abel@ispras.ru> PR rtl-optimization/37360 * haifa-sched.c (max_issue): Do not assert that we never issue more insns than issue_rate. Add comment. testsuite/ PR rtl-optimization/37360 * gcc.dg/pr37360.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165880 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 40f125de3c7..889e3bf7d71 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -2479,14 +2479,7 @@ max_issue (struct ready_list *ready, int privileged_n, state_t state,
/* Init max_points. */
max_points = 0;
more_issue = issue_rate - cycle_issued_insns;
-
- /* ??? We used to assert here that we never issue more insns than issue_rate.
- However, some targets (e.g. MIPS/SB1) claim lower issue rate than can be
- achieved to get better performance. Until these targets are fixed to use
- scheduler hooks to manipulate insns priority instead, the assert should
- be disabled.
-
- gcc_assert (more_issue >= 0); */
+ gcc_assert (more_issue >= 0);
for (i = 0; i < n_ready; i++)
if (!ready_try [i])