diff options
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index e7ace3fab3b..d670a7db19e 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1173,7 +1173,7 @@ rtx_equal_for_memref_p (rtx x, rtx y) && rtx_equal_for_memref_p (XEXP (x, 1), XEXP (y, 0)))); /* For commutative operations, the RTX match if the operand match in any order. Also handle the simple binary and unary cases without a loop. */ - if (code == EQ || code == NE || GET_RTX_CLASS (code) == 'c') + if (COMMUTATIVE_P (x)) { rtx xop0 = canon_rtx (XEXP (x, 0)); rtx yop0 = canon_rtx (XEXP (y, 0)); @@ -1184,14 +1184,14 @@ rtx_equal_for_memref_p (rtx x, rtx y) || (rtx_equal_for_memref_p (xop0, yop1) && rtx_equal_for_memref_p (canon_rtx (XEXP (x, 1)), yop0))); } - else if (GET_RTX_CLASS (code) == '<' || GET_RTX_CLASS (code) == '2') + else if (NON_COMMUTATIVE_P (x)) { return (rtx_equal_for_memref_p (canon_rtx (XEXP (x, 0)), canon_rtx (XEXP (y, 0))) && rtx_equal_for_memref_p (canon_rtx (XEXP (x, 1)), canon_rtx (XEXP (y, 1)))); } - else if (GET_RTX_CLASS (code) == '1') + else if (UNARY_P (x)) return rtx_equal_for_memref_p (canon_rtx (XEXP (x, 0)), canon_rtx (XEXP (y, 0))); @@ -1261,7 +1261,7 @@ find_symbolic_term (rtx x) code = GET_CODE (x); if (code == SYMBOL_REF || code == LABEL_REF) return x; - if (GET_RTX_CLASS (code) == 'o') + if (OBJECT_P (x)) return 0; fmt = GET_RTX_FORMAT (code); |