aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-01-15 04:14:10 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-01-15 04:14:10 +0000
commit6a29dc8b1b22244e201d21a229f6171bd141c9f5 (patch)
tree5e6a25a8f4422169f1a52a50f4a3ad63e1d3b06a /gcc/rtlanal.c
parentbbc8fb000beb5e5308d4bd9f4a76ac63db7d09f4 (diff)
downloadgcc-6a29dc8b1b22244e201d21a229f6171bd141c9f5.zip
gcc-6a29dc8b1b22244e201d21a229f6171bd141c9f5.tar.gz
gcc-6a29dc8b1b22244e201d21a229f6171bd141c9f5.tar.bz2
rtlanal.c (regs_set_between_p): Remove.
* rtlanal.c (regs_set_between_p): Remove. * rtl.h: Remove the corresponding prototype. From-SVN: r93685
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 98a2843..abfa7b2 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -784,51 +784,6 @@ reg_set_p (rtx reg, rtx insn)
}
/* Similar to reg_set_between_p, but check all registers in X. Return 0
- only if none of them are modified between START and END. Do not
- consider non-registers one way or the other. */
-
-int
-regs_set_between_p (rtx x, rtx start, rtx end)
-{
- enum rtx_code code = GET_CODE (x);
- const char *fmt;
- int i, j;
-
- switch (code)
- {
- case CONST_INT:
- case CONST_DOUBLE:
- case CONST_VECTOR:
- case CONST:
- case SYMBOL_REF:
- case LABEL_REF:
- case PC:
- case CC0:
- return 0;
-
- case REG:
- return reg_set_between_p (x, start, end);
-
- default:
- break;
- }
-
- fmt = GET_RTX_FORMAT (code);
- for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
- {
- if (fmt[i] == 'e' && regs_set_between_p (XEXP (x, i), start, end))
- return 1;
-
- else if (fmt[i] == 'E')
- for (j = XVECLEN (x, i) - 1; j >= 0; j--)
- if (regs_set_between_p (XVECEXP (x, i, j), start, end))
- return 1;
- }
-
- return 0;
-}
-
-/* Similar to reg_set_between_p, but check all registers in X. Return 0
only if none of them are modified between START and END. Return 1 if
X contains a MEM; this routine does usememory aliasing. */