summaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-09 12:25:03 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-09 12:25:03 +0000
commit25854e9a2030dfbb7e956b387ffce49fc728c71c (patch)
tree123ede30993825f508d9aeacec524999a3fdcab6 /gcc/gcse.c
parentd013fa36669a83dbadc753e050a0f52a5e0d149a (diff)
downloadgcc-25854e9a2030dfbb7e956b387ffce49fc728c71c.tar.gz
8
* gcse.c (cprop_insn): Do not try to simplify a simple jump. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26846 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 5392607c586..d7fde36ecd8 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -3749,7 +3749,9 @@ cprop_insn (insn, alter_jumps)
Note this does not currently handle machines which use cc0. */
else if (alter_jumps
- && GET_CODE (insn) == JUMP_INSN && condjump_p (insn))
+ && GET_CODE (insn) == JUMP_INSN
+ && condjump_p (insn)
+ && ! simplejump_p (insn))
{
/* We want a copy of the JUMP_INSN so we can modify it
in-place as needed without effecting the original. */