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 be8ef14..2e4760a 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 5976296..824f1ec 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),