diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-28 20:47:49 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-28 20:47:49 +0000 |
commit | bdda9b179dab8cce7cb1308d327fc6eb9ba53694 (patch) | |
tree | 8a87291d775985e6bc4884ae73efc5bc6a95a768 | |
parent | dc01c3d194afdf0ef85c46a97459badf1b149225 (diff) | |
download | gcc-bdda9b179dab8cce7cb1308d327fc6eb9ba53694.zip gcc-bdda9b179dab8cce7cb1308d327fc6eb9ba53694.tar.gz gcc-bdda9b179dab8cce7cb1308d327fc6eb9ba53694.tar.bz2 |
Delete find_last_value
gcc/
2014-08-28 David Malcolm <dmalcolm@redhat.com>
* rtl.h (find_last_value): Delete.
* rtlanal.c (find_last_value): Delete.
From-SVN: r214694
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/rtl.h | 1 | ||||
-rw-r--r-- | gcc/rtlanal.c | 46 |
3 files changed, 5 insertions, 47 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e486eb4..bd0c899 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2014-08-28 David Malcolm <dmalcolm@redhat.com> + * rtl.h (find_last_value): Delete. + * rtlanal.c (find_last_value): Delete. + +2014-08-28 David Malcolm <dmalcolm@redhat.com> + * cfgexpand.c (pass_expand::execute): Strengthen local "after" from rtx to rtx_insn *. * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local @@ -2751,7 +2751,6 @@ extern rtx single_set_2 (const_rtx, const_rtx); extern int multiple_sets (const_rtx); extern int set_noop_p (const_rtx); extern int noop_move_p (const_rtx); -extern rtx find_last_value (rtx, rtx *, rtx, int); extern int refers_to_regno_p (unsigned int, unsigned int, const_rtx, rtx *); extern int reg_overlap_mentioned_p (const_rtx, const_rtx); extern const_rtx set_of (const_rtx, const_rtx); diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 21de0ad..e95be62 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1361,52 +1361,6 @@ noop_move_p (const_rtx insn) } -/* Return the last thing that X was assigned from before *PINSN. If VALID_TO - is not NULL_RTX then verify that the object is not modified up to VALID_TO. - If the object was modified, if we hit a partial assignment to X, or hit a - CODE_LABEL first, return X. If we found an assignment, update *PINSN to - point to it. ALLOW_HWREG is set to 1 if hardware registers are allowed to - be the src. */ - -rtx -find_last_value (rtx x, rtx *pinsn, rtx valid_to, int allow_hwreg) -{ - rtx p; - - for (p = PREV_INSN (*pinsn); p && !LABEL_P (p); - p = PREV_INSN (p)) - if (INSN_P (p)) - { - rtx set = single_set (p); - rtx note = find_reg_note (p, REG_EQUAL, NULL_RTX); - - if (set && rtx_equal_p (x, SET_DEST (set))) - { - rtx src = SET_SRC (set); - - if (note && GET_CODE (XEXP (note, 0)) != EXPR_LIST) - src = XEXP (note, 0); - - if ((valid_to == NULL_RTX - || ! modified_between_p (src, PREV_INSN (p), valid_to)) - /* Reject hard registers because we don't usually want - to use them; we'd rather use a pseudo. */ - && (! (REG_P (src) - && REGNO (src) < FIRST_PSEUDO_REGISTER) || allow_hwreg)) - { - *pinsn = p; - return src; - } - } - - /* If set in non-simple way, we don't have a value. */ - if (reg_set_p (x, p)) - break; - } - - return x; -} - /* Return nonzero if register in range [REGNO, ENDREGNO) appears either explicitly or implicitly in X other than being stored into. |