diff options
author | Jeffrey A Law <law@cygnus.com> | 1997-09-22 00:49:32 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-09-21 18:49:32 -0600 |
commit | 2a1777af229bc5e9e738fd5bb8285ac0c1e24a7d (patch) | |
tree | 18e02cdfa9330785934ec403168033e5f85505e6 /gcc/reg-stack.c | |
parent | 37842442c3a0fc8e10d227cd7af112fdd4ef14e7 (diff) | |
download | gcc-2a1777af229bc5e9e738fd5bb8285ac0c1e24a7d.zip gcc-2a1777af229bc5e9e738fd5bb8285ac0c1e24a7d.tar.gz gcc-2a1777af229bc5e9e738fd5bb8285ac0c1e24a7d.tar.bz2 |
jump.c (jmp_uses_reg_or_mem): Deleted unused function.
* jump.c (jmp_uses_reg_or_mem): Deleted unused function.
(find_basic_blocks): Use computed_jump_p to determine if a
particular JUMP_INSN is a computed jump.
* reg-stack.c (find_blocks): Use computed_jump_p to determine
if a particular JUMP_INSN is a computed jump.
* rtlanal.c (jmp_uses_reg_or_mem): New function.
(computed_jump_p): Likewise.
* rtl.h (computed_jump_p): Declare.
* genattrtab.c (pc_rtx): Define and initialize.
* loop.c (loop_optimize): Always determine if the current
function has a computed jump.
(indirect_jump_in_function_p): Use computed_jump_p to determine
if a particular JUMP_INSN is a computed jump.
General (and haifa) cleanups.
From-SVN: r15615
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 881d94f..5b0c8ab 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -1351,34 +1351,8 @@ find_blocks (first) if (GET_CODE (insn) == JUMP_INSN) { - rtx pat = PATTERN (insn); - int computed_jump = 0; - rtx x; - if (GET_CODE (pat) == PARALLEL) - { - int len = XVECLEN (pat, 0); - int has_use_labelref = 0; - int i; - - for (i = len - 1; i >= 0; i--) - if (GET_CODE (XVECEXP (pat, 0, i)) == USE - && GET_CODE (XEXP (XVECEXP (pat, 0, i), 0)) == LABEL_REF) - has_use_labelref = 1; - - if (! has_use_labelref) - for (i = len - 1; i >= 0; i--) - if (GET_CODE (XVECEXP (pat, 0, i)) == SET - && SET_DEST (XVECEXP (pat, 0, i)) == pc_rtx - && uses_reg_or_mem (SET_SRC (XVECEXP (pat, 0, i)))) - computed_jump = 1; - } - else if (GET_CODE (pat) == SET - && SET_DEST (pat) == pc_rtx - && uses_reg_or_mem (SET_SRC (pat))) - computed_jump = 1; - - if (computed_jump) + if (computed_jump_p (insn)) { for (x = label_value_list; x; x = XEXP (x, 1)) record_label_references (insn, |