diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-01-30 15:07:34 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-01-30 15:07:34 +0000 |
commit | 9caea4a72fd8f85dc33dfbb990249734fe31c256 (patch) | |
tree | 61758ef05a67c706ea6ac9a94de7211b12eb0740 /gcc/cfgrtl.c | |
parent | ba9f17dfd999e8afad9d30606de7ac28f528772b (diff) | |
download | gcc-9caea4a72fd8f85dc33dfbb990249734fe31c256.zip gcc-9caea4a72fd8f85dc33dfbb990249734fe31c256.tar.gz gcc-9caea4a72fd8f85dc33dfbb990249734fe31c256.tar.bz2 |
cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
gcc/
* cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
From-SVN: r121339
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 4aaedbe..4424621 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 |