sel-sched: allow negative insn priority (PR 88879)
authorAlexander Monakov <amonakov@ispras.ru>
Thu, 9 May 2019 18:13:28 +0000 (21:13 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 9 May 2019 18:13:28 +0000 (21:13 +0300)
PR rtl-optimization/88879
* sel-sched.c (sel_target_adjust_priority): Remove assert.

From-SVN: r271039

gcc/ChangeLog
gcc/sel-sched.c

index b761d0a478d548d687769e7beaf1d3c858147cd7..aebd83041a788b6b3e8ad0ec8aa274b60b49e8be 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
+
+       PR rtl-optimization/88879
+       * sel-sched.c (sel_target_adjust_priority): Remove assert.
+
 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
 
        PR target/90405
index f6e94bfc15c1a346a890c5a5a6a35acddebb97e0..f127ff7459913e294d870a453ae842949d2d83fd 100644 (file)
@@ -3331,8 +3331,6 @@ sel_target_adjust_priority (expr_t expr)
   else
     new_priority = priority;
 
-  gcc_assert (new_priority >= 0);
-
   /* If the priority has changed, adjust EXPR_PRIORITY_ADJ accordingly.  */
   EXPR_PRIORITY_ADJ (expr) = new_priority - EXPR_PRIORITY (expr);