diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-29 06:19:36 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-29 06:19:36 +0000 |
commit | 5fad51c9dc8f0b7491e38e0fbd74dc229781421c (patch) | |
tree | 16034cad640b80685e8cdfd819c623f43262295f /gcc/reload1.c | |
parent | db3a628da86cc798bcdefa953ee0558e746a50ce (diff) | |
download | gcc-5fad51c9dc8f0b7491e38e0fbd74dc229781421c.tar.gz |
PR target/6087
* reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51543 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index fce489da0d0..c36799f4381 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -9517,8 +9517,19 @@ fixup_abnormal_edges () next = NEXT_INSN (insn); if (INSN_P (insn)) { - insert_insn_on_edge (PATTERN (insn), e); + rtx seq; + delete_insn (insn); + + /* We're not deleting it, we're moving it. */ + INSN_DELETED_P (insn) = 0; + + /* Emit a sequence, rather than scarfing the pattern, so + that we don't lose REG_NOTES etc. */ + /* ??? Could copy the test from gen_sequence, but don't + think it's worth the bother. */ + seq = gen_rtx_SEQUENCE (VOIDmode, gen_rtvec (1, insn)); + insert_insn_on_edge (seq, e); } insn = next; } |