From 4e3f3c46d716eda472f6bcb6918b3ab69d981328 Mon Sep 17 00:00:00 2001 From: Andrey Belevantsev Date: Mon, 18 Mar 2019 10:51:06 +0300 Subject: [PATCH] re PR rtl-optimization/89676 (Redundant moves for long long shift on 32bit x86) PR middle-end/89676 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible successor, use NULL as its av set. From-SVN: r269751 --- gcc/ChangeLog | 6 ++++++ gcc/sel-sched.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67dc0bfdbb6..b66cb5d81cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-03-18 Andrey Belevantsev + + PR middle-end/89676 + * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible + successor, use NULL as its av set. + 2019-03-15 Segher Boessenkool PR rtl-optimization/89721 diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index 315f2c0c0ab..338d7c097df 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -2820,10 +2820,12 @@ compute_av_set_at_bb_end (insn_t insn, ilist_t p, int ws) FOR_EACH_VEC_ELT (sinfo->succs_ok, is, succ) { basic_block succ_bb = BLOCK_FOR_INSN (succ); + av_set_t av_succ = (is_ineligible_successor (succ, p) + ? NULL + : BB_AV_SET (succ_bb)); gcc_assert (BB_LV_SET_VALID_P (succ_bb)); - mark_unavailable_targets (av1, BB_AV_SET (succ_bb), - BB_LV_SET (succ_bb)); + mark_unavailable_targets (av1, av_succ, BB_LV_SET (succ_bb)); } /* Finally, check liveness restrictions on paths leaving the region. */ -- 2.30.2