re PR rtl-optimization/85458 (FAIL: gcc.dg/pr83480.c (internal compiler error))

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
This commit is contained in:
John David Anglin 2018-09-08 13:20:23 +00:00
parent 07eef95282
commit 208121b583
2 changed files with 8 additions and 2 deletions

View 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

View 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),