diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-30 18:53:46 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-30 18:53:46 +0000 |
commit | e6428cd5e6367550643d85e9cf1709adf03aaa04 (patch) | |
tree | 722fead98a89b352575082bf5b82d8e3ef6bbeb1 /gcc/sched-ebb.c | |
parent | 339ad7cae01bd4b97e7cea7afecce3c4e811c3e0 (diff) | |
download | gcc-e6428cd5e6367550643d85e9cf1709adf03aaa04.tar.gz |
PR rtl-optimization/48721
* sched-ebb.c (begin_move_insn): Insert empty unreachable
block after BARRIER if insn is followed by it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181855 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-ebb.c')
-rw-r--r-- | gcc/sched-ebb.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/sched-ebb.c b/gcc/sched-ebb.c index 9a28e2bfc4b..cae9f704178 100644 --- a/gcc/sched-ebb.c +++ b/gcc/sched-ebb.c @@ -191,8 +191,13 @@ begin_move_insn (rtx insn, rtx last) gcc_assert (NOTE_INSN_BASIC_BLOCK_P (BB_END (bb))); } else - /* Create an empty unreachable block after the INSN. */ - bb = create_basic_block (NEXT_INSN (insn), NULL_RTX, last_bb); + { + /* Create an empty unreachable block after the INSN. */ + rtx next = NEXT_INSN (insn); + if (next && BARRIER_P (next)) + next = NEXT_INSN (next); + bb = create_basic_block (next, NULL_RTX, last_bb); + } /* split_edge () creates BB before E->DEST. Keep in mind, that this operation extends scheduling region till the end of BB. |