diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-20 18:07:12 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-20 18:07:12 +0000 |
commit | cabd21280a9309182c00b25d913dc72c61f0cb25 (patch) | |
tree | bf4660e88dc03e25280c8b8a006f9e392f2a9db9 /gcc/sel-sched-ir.c | |
parent | b46d26d9cbcec47f9efb6a03223217b48f6b86d5 (diff) | |
download | gcc-cabd21280a9309182c00b25d913dc72c61f0cb25.tar.gz |
PR rtl-optimization/45353
* sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
after bb_note is a BARRIER.
* gcc.dg/pr45353.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163412 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sel-sched-ir.c')
-rw-r--r-- | gcc/sel-sched-ir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c index f23b7cf8d98..a9d7ccf0fcd 100644 --- a/gcc/sel-sched-ir.c +++ b/gcc/sel-sched-ir.c @@ -4326,7 +4326,7 @@ sel_bb_head (basic_block bb) note = bb_note (bb); head = next_nonnote_insn (note); - if (head && BLOCK_FOR_INSN (head) != bb) + if (head && (BARRIER_P (head) || BLOCK_FOR_INSN (head) != bb)) head = NULL_RTX; } |