diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-02-26 03:05:40 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-02-26 03:05:40 +0000 |
commit | 8beccec86d944d599dd4598ab607c2f747327967 (patch) | |
tree | 528ae78f7e10b37399d1b8ddea63ecb542811b27 /gcc/integrate.c | |
parent | b052d8ee4d954827cac504052ede36053543a2a4 (diff) | |
download | gcc-8beccec86d944d599dd4598ab607c2f747327967.tar.gz |
combine.c (combine_simplify_rtx, [...]): Use CC0_P.
* combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
* cse.c (invalidate_skipped_set): Likewise.
* integrate.c (subst_constants): Likewise.
* jump.c (reversed_comparison_code_parts): Likewise.
* loop.c (canonicalize_condition): Likewise.
* simplify-rtx.c (simplify_relational_operation): Likewise.
From-SVN: r63446
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 5f050ff21c9..576d8240c65 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -1,6 +1,6 @@ /* Procedure integration for GCC. - Copyright (C) 1988, 1991, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1988, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GCC. @@ -2611,10 +2611,7 @@ subst_constants (loc, insn, map, memonly) { src = SET_SRC (x); if (GET_MODE_CLASS (GET_MODE (src)) == MODE_CC -#ifdef HAVE_cc0 - || dest == cc0_rtx -#endif - ) + || CC0_P (dest)) { compare_mode = GET_MODE (XEXP (src, 0)); if (compare_mode == VOIDmode) @@ -2666,9 +2663,7 @@ subst_constants (loc, insn, map, memonly) || REGNO (XEXP (src, 0)) == VIRTUAL_STACK_VARS_REGNUM) && CONSTANT_P (XEXP (src, 1))) || GET_CODE (src) == COMPARE -#ifdef HAVE_cc0 - || dest == cc0_rtx -#endif + || CC0_P (dest) || (dest == pc_rtx && (src == pc_rtx || GET_CODE (src) == RETURN || GET_CODE (src) == LABEL_REF)))) @@ -2682,10 +2677,7 @@ subst_constants (loc, insn, map, memonly) if (compare_mode != VOIDmode && GET_CODE (src) == COMPARE && (GET_MODE_CLASS (GET_MODE (src)) == MODE_CC -#ifdef HAVE_cc0 - || dest == cc0_rtx -#endif - ) + || CC0_P (dest)) && GET_MODE (XEXP (src, 0)) == VOIDmode && GET_MODE (XEXP (src, 1)) == VOIDmode) { |