diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-06-28 05:39:40 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-06-28 05:39:40 +0000 |
commit | f7400894d99e0482401d74affbd81ff1851423e1 (patch) | |
tree | ab3aaccd5999e927c043fd89ca44ebc01fac2de6 /gcc/explow.c | |
parent | 92fee0d0c1ca5bbd12221a0ecb19886325623d9d (diff) | |
download | gcc-f7400894d99e0482401d74affbd81ff1851423e1.zip gcc-f7400894d99e0482401d74affbd81ff1851423e1.tar.gz gcc-f7400894d99e0482401d74affbd81ff1851423e1.tar.bz2 |
explow.c (find_next_ref): Remove.
* explow.c (find_next_ref): Remove.
* rtl.h: Remove the prototype for find_next_ref.
From-SVN: r68628
Diffstat (limited to 'gcc/explow.c')
-rw-r--r-- | gcc/explow.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/gcc/explow.c b/gcc/explow.c index 883edf8..9568afc 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -241,51 +241,6 @@ eliminate_constant_term (x, constptr) return x; } -/* Returns the insn that next references REG after INSN, or 0 - if REG is clobbered before next referenced or we cannot find - an insn that references REG in a straight-line piece of code. */ - -rtx -find_next_ref (reg, insn) - rtx reg; - rtx insn; -{ - rtx next; - - for (insn = NEXT_INSN (insn); insn; insn = next) - { - next = NEXT_INSN (insn); - if (GET_CODE (insn) == NOTE) - continue; - if (GET_CODE (insn) == CODE_LABEL - || GET_CODE (insn) == BARRIER) - return 0; - if (GET_CODE (insn) == INSN - || GET_CODE (insn) == JUMP_INSN - || GET_CODE (insn) == CALL_INSN) - { - if (reg_set_p (reg, insn)) - return 0; - if (reg_mentioned_p (reg, PATTERN (insn))) - return insn; - if (GET_CODE (insn) == JUMP_INSN) - { - if (any_uncondjump_p (insn)) - next = JUMP_LABEL (insn); - else - return 0; - } - if (GET_CODE (insn) == CALL_INSN - && REGNO (reg) < FIRST_PSEUDO_REGISTER - && call_used_regs[REGNO (reg)]) - return 0; - } - else - abort (); - } - return 0; -} - /* Return an rtx for the size in bytes of the value of EXP. */ rtx |