aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-06-27 19:42:24 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-06-27 19:42:24 +0000
commitfa9ea2557400e8250a886d57234a9dcb73a0a3f1 (patch)
tree3f85a42bfad26bc633cf8012895197833f21ab4f /gcc
parent47c7b4d250323f816bc67b65bfc54730c2928781 (diff)
downloadgcc-fa9ea2557400e8250a886d57234a9dcb73a0a3f1.zip
gcc-fa9ea2557400e8250a886d57234a9dcb73a0a3f1.tar.gz
gcc-fa9ea2557400e8250a886d57234a9dcb73a0a3f1.tar.bz2
combine.c (force_to_mode): Replace the equality comparison of INTVALs with a pointer equality comparison.
* combine.c (force_to_mode): Replace the equality comparison of INTVALs with a pointer equality comparison. (simplify_comparison): Likewise. From-SVN: r68603
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/combine.c12
2 files changed, 10 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2e263f9..240105d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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
is known to be 0 with 0.
diff --git a/gcc/combine.c b/gcc/combine.c
index 1638576..7b8fc9c 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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