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
This commit is contained in:
Richard Sandiford 2007-01-30 15:07:34 +00:00 committed by Richard Sandiford
parent ba9f17dfd9
commit 9caea4a72f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-01-30 Richard Sandiford <richard@codesourcery.com>
* cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
2007-01-30 Uros Bizjak <ubizjak@gmail.com>
* builtins.c (expand_builtin_int_interclass_roundingfn): New function

View File

@ -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