combine.c (force_to_mode): Replace the equality comparison of INTVALs with a pointer...
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 27 Jun 2003 19:42:24 +0000 (19:42 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 27 Jun 2003 19:42:24 +0000 (19:42 +0000)
* combine.c (force_to_mode): Replace the equality comparison
of INTVALs with a pointer equality comparison.
(simplify_comparison): Likewise.

From-SVN: r68603

gcc/ChangeLog
gcc/combine.c

index 2e263f9a231c3b47512b706c73b3d73e31dd34ac..240105dcba1887d177bb154c776780185f392a61 100644 (file)
@@ -1,3 +1,9 @@
+2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * combine.c (force_to_mode): Replace the equality comparison
+       of INTVALs with a pointer equality comparison.
+       (simplify_comparison): Likewise.
+
 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
 
        * jump.c (rtx_renumbered_equal_p): Replace an expression that
index 16385767e66a1ff2055d09066667574b27281183..7b8fc9c8eb38176b6f1e1aeb2a2659028db765c5 100644 (file)
@@ -7223,8 +7223,7 @@ force_to_mode (rtx x, enum machine_mode mode, unsigned HOST_WIDE_INT mask,
          && (INTVAL (XEXP (x, 1))
              <= GET_MODE_BITSIZE (GET_MODE (x)) - (floor_log2 (mask) + 1))
          && GET_CODE (XEXP (x, 0)) == ASHIFT
-         && GET_CODE (XEXP (XEXP (x, 0), 1)) == CONST_INT
-         && INTVAL (XEXP (XEXP (x, 0), 1)) == INTVAL (XEXP (x, 1)))
+         && XEXP (XEXP (x, 0), 1) == XEXP (x, 1))
        return force_to_mode (XEXP (XEXP (x, 0), 0), mode, mask,
                              reg, next_select);
 
@@ -10248,12 +10247,9 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx *pop1)
          && (GET_MODE (SUBREG_REG (XEXP (XEXP (op0, 0), 0)))
              == GET_MODE (SUBREG_REG (XEXP (XEXP (op1, 0), 0))))
          && GET_CODE (XEXP (op0, 1)) == CONST_INT
-         && GET_CODE (XEXP (op1, 1)) == CONST_INT
-         && GET_CODE (XEXP (XEXP (op0, 0), 1)) == CONST_INT
-         && GET_CODE (XEXP (XEXP (op1, 0), 1)) == CONST_INT
-         && INTVAL (XEXP (op0, 1)) == INTVAL (XEXP (op1, 1))
-         && INTVAL (XEXP (op0, 1)) == INTVAL (XEXP (XEXP (op0, 0), 1))
-         && INTVAL (XEXP (op0, 1)) == INTVAL (XEXP (XEXP (op1, 0), 1))
+         && XEXP (op0, 1) == XEXP (op1, 1)
+         && XEXP (op0, 1) == XEXP (XEXP (op0, 0), 1)
+         && XEXP (op0, 1) == XEXP (XEXP (op1, 0), 1)
          && (INTVAL (XEXP (op0, 1))
              == (GET_MODE_BITSIZE (GET_MODE (op0))
                  - (GET_MODE_BITSIZE