summaryrefslogtreecommitdiff
path: root/gcc/cselib.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2016-05-02 10:08:59 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2016-05-02 10:08:59 +0000
commit08e5cf22522a870f0de5be947f1494b4b63f33ad (patch)
tree7c5d880da603b7acab4627747941d8a33e7441b4 /gcc/cselib.c
parent86d2f05621aed0d34dc97a4d619958aa7e170d1c (diff)
re PR rtl-optimization/70886 (-frename-registers causes boostrap comparison failures on ia64)
PR rtl-optimization/70886 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values. * cselib.h (rtx_equal_for_cselib_1): Declare. (rtx_equal_for_cselib_p: New inline function. * cselib.c (rtx_equal_for_cselib_p): Delete. (rtx_equal_for_cselib_1): Make public. From-SVN: r235735
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r--gcc/cselib.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c
index 2922465cf83..14c7b320b03 100644
--- a/gcc/cselib.c
+++ b/gcc/cselib.c
@@ -49,7 +49,6 @@ static void unchain_one_value (cselib_val *);
static void unchain_one_elt_list (struct elt_list **);
static void unchain_one_elt_loc_list (struct elt_loc_list **);
static void remove_useless_values (void);
-static int rtx_equal_for_cselib_1 (rtx, rtx, machine_mode);
static unsigned int cselib_hash_rtx (rtx, int, machine_mode);
static cselib_val *new_cselib_val (unsigned int, machine_mode, rtx);
static void add_mem_for_addr (cselib_val *, cselib_val *, rtx);
@@ -788,15 +787,6 @@ cselib_reg_set_mode (const_rtx x)
return GET_MODE (REG_VALUES (REGNO (x))->elt->val_rtx);
}
-/* Return nonzero if we can prove that X and Y contain the same value, taking
- our gathered information into account. */
-
-int
-rtx_equal_for_cselib_p (rtx x, rtx y)
-{
- return rtx_equal_for_cselib_1 (x, y, VOIDmode);
-}
-
/* If x is a PLUS or an autoinc operation, expand the operation,
storing the offset, if any, in *OFF. */
@@ -843,7 +833,7 @@ autoinc_split (rtx x, rtx *off, machine_mode memmode)
addressing modes. If X and Y are not (known to be) part of
addresses, MEMMODE should be VOIDmode. */
-static int
+int
rtx_equal_for_cselib_1 (rtx x, rtx y, machine_mode memmode)
{
enum rtx_code code;