Hi,

this fixes PR 88879 by mostly restoring the previous behavior (accepting
negative priority values).

Approved by Andrey off-list, applying.

        PR rtl-optimization/88879
        * sel-sched.c (sel_target_adjust_priority): Remove assert.

Index: sel-sched.c
===================================================================
--- sel-sched.c (revision 271038)
+++ sel-sched.c (working copy)
@@ -3331,8 +3331,6 @@
   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);
 

Reply via email to