diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-07-01 01:15:07 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-07-01 01:15:07 +0000 |
commit | 6001794def1de775fa296fa60b8bf5630dc97736 (patch) | |
tree | 5598774dfea689770b311deffdc2ccd8112d6016 /gcc/config/vax | |
parent | 7d896ee96b213c6e77acd70f44bfb18d1a72c905 (diff) | |
download | gcc-6001794def1de775fa296fa60b8bf5630dc97736.tar.gz |
combine.c (distribute_notes): Don't bother REG_WAS_0.
* combine.c (distribute_notes): Don't bother REG_WAS_0.
* cse.c (cse_insn): Likewise.
* final.c (final_scan_insn): Likewise.
* jump.c (duplicate_loop_exit_test): Likewise.
* rtl.c (reg_note_name): Remove REG_WAS_0.
* rtl.h (REG_WAS_0): Remove.
* unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
* config/avr/avr.c (output_movqi): Don't use reg_was_0.
(output_movhi): Likewise.
(output_movsisf): Likewise.
(reg_was_0): Remove.
* config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
REG_WAS_0.
(m68hc11_gen_movqi): Likewise.
* config/vax/vax-protos.h: Remove the prototype for
reg_was_0_p.
* config/vax/vax.c (follows_p): Remove.
(reg_was_0_p): Likewise.
* config/vax/vax.md (movsi): Don't use reg_was_0_p.
(movhi): Likewise.
(movqi): Likewise.
* doc/rtl.texi (REG_WAS_0): Remove.
From-SVN: r68753
Diffstat (limited to 'gcc/config/vax')
-rw-r--r-- | gcc/config/vax/vax-protos.h | 1 | ||||
-rw-r--r-- | gcc/config/vax/vax.c | 36 | ||||
-rw-r--r-- | gcc/config/vax/vax.md | 9 |
3 files changed, 0 insertions, 46 deletions
diff --git a/gcc/config/vax/vax-protos.h b/gcc/config/vax/vax-protos.h index 8da42d0d027..199db19af55 100644 --- a/gcc/config/vax/vax-protos.h +++ b/gcc/config/vax/vax-protos.h @@ -25,7 +25,6 @@ extern const char *rev_cond_name PARAMS ((rtx)); extern void split_quadword_operands PARAMS ((rtx *, rtx *, int)); extern void print_operand_address PARAMS ((FILE *, rtx)); extern int vax_float_literal PARAMS ((rtx)); -extern int reg_was_0_p PARAMS ((rtx, rtx)); #endif /* RTX_CODE */ #ifdef REAL_VALUE_TYPE diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index fea970e0eda..1b94beef01d 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -41,7 +41,6 @@ Boston, MA 02111-1307, USA. */ #include "target.h" #include "target-def.h" -static int follows_p PARAMS ((rtx, rtx)); static void vax_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT)); static void vax_file_start PARAMS ((void)); static void vax_output_mi_thunk PARAMS ((FILE *, tree, HOST_WIDE_INT, @@ -755,41 +754,6 @@ vax_rtx_costs (x, code, outer_code, total) return true; } -/* Return 1 if insn A follows B. */ - -static int -follows_p (a, b) - rtx a, b; -{ - register rtx p; - - for (p = a; p != b; p = NEXT_INSN (p)) - if (! p) - return 1; - - return 0; -} - -/* Returns 1 if we know operand OP was 0 before INSN. */ - -int -reg_was_0_p (insn, op) - rtx insn, op; -{ - rtx link; - - return ((link = find_reg_note (insn, REG_WAS_0, 0)) - /* Make sure the insn that stored the 0 is still present - and doesn't follow INSN in the insn sequence. */ - && ! INSN_DELETED_P (XEXP (link, 0)) - && GET_CODE (XEXP (link, 0)) != NOTE - && ! follows_p (XEXP (link, 0), insn) - /* Make sure cross jumping didn't happen here. */ - && no_labels_between_p (XEXP (link, 0), insn) - /* Make sure the reg hasn't been clobbered. */ - && ! reg_set_between_p (op, XEXP (link, 0), insn)); -} - /* Output code to add DELTA to the first argument, and then jump to FUNCTION. Used for C++ multiple inheritance. .mask ^m<r2,r3,r4,r5,r6,r7,r8,r9,r10,r11> #conservative entry mask diff --git a/gcc/config/vax/vax.md b/gcc/config/vax/vax.md index d0dc9556021..7027604ed9e 100644 --- a/gcc/config/vax/vax.md +++ b/gcc/config/vax/vax.md @@ -193,9 +193,6 @@ "" "* { - if (operands[1] == const1_rtx && reg_was_0_p (insn, operands[0])) - return \"incl %0\"; - if (GET_CODE (operands[1]) == SYMBOL_REF || GET_CODE (operands[1]) == CONST) { if (push_operand (operands[0], SImode)) @@ -230,9 +227,6 @@ "" "* { - if (operands[1] == const1_rtx && reg_was_0_p (insn, operands[0])) - return \"incw %0\"; - if (GET_CODE (operands[1]) == CONST_INT) { int i = INTVAL (operands[1]); @@ -275,9 +269,6 @@ "" "* { - if (operands[1] == const1_rtx && reg_was_0_p (insn, operands[0])) - return \"incb %0\"; - if (GET_CODE (operands[1]) == CONST_INT) { int i = INTVAL (operands[1]); |