[committed] sel-sched: allow negative insn priority (PR 88879)

Message ID alpine.LNX.2.20.13.1905092106460.7612@monopod.intra.ispras.ru
State New
Headers show
Series
  • [committed] sel-sched: allow negative insn priority (PR 88879)
Related show

Commit Message

Alexander Monakov May 9, 2019, 6:13 p.m.
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.

Patch

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);