diff options
author | Richard Henderson <rth@redhat.com> | 2005-07-28 22:57:44 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-07-28 22:57:44 -0700 |
commit | 37cf61167f3d85b235bec602cef96b6e39764f2c (patch) | |
tree | 87062b85bae892f1fff511f8c85752bd8d18e25d /gcc/cselib.c | |
parent | 13b22d3a861a9d82fe3b70e5cb11ca5c2a9d4c98 (diff) | |
download | gcc-37cf61167f3d85b235bec602cef96b6e39764f2c.tar.gz |
cse.c (exp_equiv_p): Special case CONST_DOUBLE.
* cse.c (exp_equiv_p): Special case CONST_DOUBLE.
* cselib.c (rtx_equal_for_cselib_p): Likewise.
* jump.c (rtx_renumbered_equal_p): Likewise.
* loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
CONST_INT and CONST_DOUBLE.
(rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
* reload.c (operands_match_p): Special case CONST_INT and
CONST_DOUBLE; check mode earlier.
From-SVN: r102548
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index 5d36be91829..13fc5326dc0 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -462,9 +462,18 @@ rtx_equal_for_cselib_p (rtx x, rtx y) if (GET_CODE (x) != GET_CODE (y) || GET_MODE (x) != GET_MODE (y)) return 0; - /* This won't be handled correctly by the code below. */ - if (GET_CODE (x) == LABEL_REF) - return XEXP (x, 0) == XEXP (y, 0); + /* These won't be handled correctly by the code below. */ + switch (GET_CODE (x)) + { + case CONST_DOUBLE: + return 0; + + case LABEL_REF: + return XEXP (x, 0) == XEXP (y, 0); + + default: + break; + } code = GET_CODE (x); fmt = GET_RTX_FORMAT (code); |