summaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorJohn Wehle <john@feith.com>2001-08-15 19:25:43 +0000
committerJohn Wehle <wehle@gcc.gnu.org>2001-08-15 19:25:43 +0000
commit44ce0063663da883cd4d1281310734d4a36e8a00 (patch)
treef447cb6b2c6dd7264add243638d8718cd3935065 /gcc/flow.c
parentcff27f1d82b78847d0e4dd25469f4487c9c2dae7 (diff)
downloadgcc-44ce0063663da883cd4d1281310734d4a36e8a00.tar.gz
rtl.h (only_sets_cc0_p): New prototype.
* rtl.h (only_sets_cc0_p): New prototype. * jump.c (sets_cc0_p): Handle INSN. (only_sets_cc0_p): New function. * flow.c (merge_blocks_nomove): Use only_sets_cc0_p. (tidy_fallthru_edge): Likewise. * integrate.c (copy_insn_list): Likewise. * unroll.c (unroll_loop): Likewise. (copy_loop_body): Likewise. From-SVN: r44927
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index ca2cedd3c28..1cf81d0f753 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -3008,7 +3008,7 @@ merge_blocks_nomove (a, b)
#ifdef HAVE_cc0
/* If this was a conditional jump, we need to also delete
the insn that set cc0. */
- if (prev && sets_cc0_p (prev))
+ if (only_sets_cc0_p (prev))
{
rtx tmp = prev;
prev = prev_nonnote_insn (prev);
@@ -4213,7 +4213,7 @@ tidy_fallthru_edge (e, b, c)
#ifdef HAVE_cc0
/* If this was a conditional jump, we need to also delete
the insn that set cc0. */
- if (any_condjump_p (q) && sets_cc0_p (PREV_INSN (q)))
+ if (any_condjump_p (q) && only_sets_cc0_p (PREV_INSN (q)))
q = PREV_INSN (q);
#endif