aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1999-05-09 06:25:03 -0600
committerJeff Law <law@gcc.gnu.org>1999-05-09 06:25:03 -0600
commit6e9a3c382d146499ab6683a53233cf252679b268 (patch)
tree123ede30993825f508d9aeacec524999a3fdcab6 /gcc/gcse.c
parentb0eb0fbd12d5099488de1eaa5abbef5dd22e6120 (diff)
downloadgcc-6e9a3c382d146499ab6683a53233cf252679b268.zip
gcc-6e9a3c382d146499ab6683a53233cf252679b268.tar.gz
gcc-6e9a3c382d146499ab6683a53233cf252679b268.tar.bz2
gcse.c (cprop_insn): Do not try to simplify a simple jump.
8 * gcse.c (cprop_insn): Do not try to simplify a simple jump. From-SVN: r26846
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 5392607..d7fde36 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. */