aboutsummaryrefslogtreecommitdiff
path: root/gcc/unroll.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/unroll.c
parentcff27f1d82b78847d0e4dd25469f4487c9c2dae7 (diff)
downloadgcc-44ce0063663da883cd4d1281310734d4a36e8a00.zip
gcc-44ce0063663da883cd4d1281310734d4a36e8a00.tar.gz
gcc-44ce0063663da883cd4d1281310734d4a36e8a00.tar.bz2
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/unroll.c')
-rw-r--r--gcc/unroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c
index f888089..09a0732 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -379,7 +379,7 @@ unroll_loop (loop, insn_count, strength_reduce_p)
#ifdef HAVE_cc0
/* The immediately preceding insn may be a compare which must be
deleted. */
- if (sets_cc0_p (prev))
+ if (only_sets_cc0_p (prev))
delete_insn (prev);
#endif
}
@@ -2148,7 +2148,7 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration,
{
#ifdef HAVE_cc0
/* If the previous insn set cc0 for us, delete it. */
- if (sets_cc0_p (PREV_INSN (copy)))
+ if (only_sets_cc0_p (PREV_INSN (copy)))
delete_insn (PREV_INSN (copy));
#endif