* combine.c (simplify_set): Treat MODE_CC registers like cc0.
authorRoger Sayle <roger@eyesopen.com>
Tue, 15 Oct 2002 05:01:07 +0000 (05:01 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 15 Oct 2002 05:01:07 +0000 (05:01 +0000)
From-SVN: r58148

gcc/ChangeLog
gcc/combine.c

index 65c096a7cea2e84901ecfb13e052ac79a2b1675f..6238c6ed1a9b8379d08e7d040c5842feb1f9638f 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-14  Roger Sayle  <roger@eyesopen.com>
+
+       * combine.c (simplify_set):  Treat MODE_CC registers like cc0.
+
 2002-10-14  Roger Sayle  <roger@eyesopen.com>
            Zack Weinberg <zack@codesourcery.com>
 
index ea12e05c2d2ceda4c6f3cf6bbc24665e7f26f945..ce97adf7daef9b839e97392c5880449d9b1e248c 100644 (file)
@@ -5021,11 +5021,9 @@ simplify_set (x)
   /* If we are setting CC0 or if the source is a COMPARE, look for the use of
      the comparison result and try to simplify it unless we already have used
      undobuf.other_insn.  */
-  if ((GET_CODE (src) == COMPARE
-#ifdef HAVE_cc0
-       || dest == cc0_rtx
-#endif
-       )
+  if ((GET_MODE_CLASS (mode) == MODE_CC
+       || GET_CODE (src) == COMPARE
+       || CC0_P (dest))
       && (cc_use = find_single_use (dest, subst_insn, &other_insn)) != 0
       && (undobuf.other_insn == 0 || other_insn == undobuf.other_insn)
       && GET_RTX_CLASS (GET_CODE (*cc_use)) == '<'