summaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-30 15:07:34 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-30 15:07:34 +0000
commit3d5a3e764e0ab7c5873690d25c6c4679134f9ac7 (patch)
tree61758ef05a67c706ea6ac9a94de7211b12eb0740 /gcc/cfgrtl.c
parent760d0db860288c6825bfa94c246f564fdba26dea (diff)
downloadgcc-3d5a3e764e0ab7c5873690d25c6c4679134f9ac7.tar.gz
gcc/
* cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121339 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 4aaedbe4724..44246210e60 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -728,7 +728,8 @@ try_redirect_by_replacing_jump (edge e, basic_block target, bool in_cfglayout)
the cc0 setter too. */
kill_from = insn;
#ifdef HAVE_cc0
- if (reg_mentioned_p (cc0_rtx, PATTERN (insn)))
+ if (reg_mentioned_p (cc0_rtx, PATTERN (insn))
+ && only_sets_cc0_p (PREV_INSN (insn)))
kill_from = PREV_INSN (insn);
#endif