From 208121b583f2af79be1c715d80491fc1f6616322 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 8 Sep 2018 13:20:23 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/sel-sched.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be8ef14e706..2e4760a3f4e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-09-08 John David Anglin + + 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 * config/i386/i386.md (float2) Enable diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index 59762964c6e..824f1ec3403 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -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), -- 2.30.2