]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/37360 (ICE in haifa-sched.c when compiling __popcountsi2 from...
authorAndrey Belevantsev <abel@ispras.ru>
Tue, 9 Sep 2008 14:19:31 +0000 (18:19 +0400)
committerAndrey Belevantsev <abel@gcc.gnu.org>
Tue, 9 Sep 2008 14:19:31 +0000 (18:19 +0400)
        PR rtl-optimization/37360
        * haifa-sched.c (max_issue): Do not assert that we never issue more
        insns than issue_rate.  Add comment.

From-SVN: r140151

gcc/ChangeLog
gcc/haifa-sched.c

index edde7b70cc1fce52c8d91aa19393c90939b6dafa..2c907942d74789a80c546aeab3c597ecb0d3f39c 100644 (file)
@@ -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.
index 833e1552b31697d8c55e88426c086a8e3146d6bc..db9b54a9d878b0623472e225c80c191a46393bf3 100644 (file)
@@ -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])