re PR rtl-optimization/85458 (FAIL: gcc.dg/pr83480.c (internal compiler error))
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 8 Sep 2018 13:20:23 +0000 (13:20 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 8 Sep 2018 13:20:23 +0000 (13:20 +0000)
PR rtl-optimization/85458
* sel-sched.c (sel_target_adjust_priority): Allow backend adjust
priority hook to reduce the priority of EXPR.

From-SVN: r264168

gcc/ChangeLog
gcc/sel-sched.c

index be8ef14e70683b1582e2394e7c124beed9a1369b..2e4760a3f4e699f24c7f59b67b71a21010a96f41 100644 (file)
@@ -1,3 +1,9 @@
+2018-09-08  John David Anglin  <danglin@gcc.gnu.org>
+
+       PR rtl-optimization/85458
+       * sel-sched.c (sel_target_adjust_priority): Allow backend adjust
+       priority hook to reduce the priority of EXPR.
+
 2018-09-07  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (float<SWI48x:mode><MODEF:mode>2) Enable
index 59762964c6e6355d13075e2366bc62e135a33de0..824f1ec3403d96367afc5274d2d0f422202320c1 100644 (file)
@@ -3330,11 +3330,11 @@ 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);
 
-  gcc_assert (EXPR_PRIORITY_ADJ (expr) >= 0);
-
   if (sched_verbose >= 4)
     sel_print ("sel_target_adjust_priority: insn %d,  %d+%d = %d.\n",
               INSN_UID (EXPR_INSN_RTX (expr)), EXPR_PRIORITY (expr),