diff options
author | abel <abel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-09 14:19:31 +0000 |
---|---|---|
committer | abel <abel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-09 14:19:31 +0000 |
commit | 7b2ffc7cee711829fdf160075986bc3df8281ba1 (patch) | |
tree | 5083d62c9cc5a3ecb1ce60c23b9fe6dacd08b35e /gcc | |
parent | d266354c81c0450245f1b75c8d36765823c4c173 (diff) | |
download | gcc-7b2ffc7cee711829fdf160075986bc3df8281ba1.tar.gz |
PR rtl-optimization/37360
* haifa-sched.c (max_issue): Do not assert that we never issue more
insns than issue_rate. Add comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140151 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/haifa-sched.c | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index edde7b70cc1..2c907942d74 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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. + 2008-09-09 Richard Guenther <rguenther@suse.de> * tree-cfg.c (verify_types_in_gimple_op): Remove. diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 833e1552b31..db9b54a9d87 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -2071,7 +2071,14 @@ 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; - gcc_assert (more_issue >= 0); + + /* ??? 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); */ for (i = 0; i < n_ready; i++) if (!ready_try [i]) |