aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-01-24 14:55:49 -0800
committerJim Wilson <wilson@gcc.gnu.org>1994-01-24 14:55:49 -0800
commitcf9188c193b9fe24ad8aef22781a177fec2467b1 (patch)
treef2ff7884b51a5a79a916f3cc309d2498fc140945
parentd10b5bca4e8ee60440fcf97e45950b06f6a57cbb (diff)
downloadgcc-cf9188c193b9fe24ad8aef22781a177fec2467b1.zip
gcc-cf9188c193b9fe24ad8aef22781a177fec2467b1.tar.gz
gcc-cf9188c193b9fe24ad8aef22781a177fec2467b1.tar.bz2
(sparc_address_cost): Delete.
From-SVN: r6424
-rw-r--r--gcc/config/sparc/sparc.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 16067e6..f85117b 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -821,39 +821,6 @@ finalize_pic ()
emit_insn (gen_rtx (USE, VOIDmode, pic_offset_table_rtx));
}
-/* For the SPARC, REG and REG+CONST is cost 0, REG+REG is cost 1,
- and addresses involving symbolic constants are cost 2.
-
- We make REG+REG slightly more expensive because it might keep
- a register live for longer than we might like.
-
- PIC addresses are very expensive.
-
- It is no coincidence that this has the same structure
- as GO_IF_LEGITIMATE_ADDRESS. */
-int
-sparc_address_cost (X)
- rtx X;
-{
-#if 0
- /* Handled before calling here. */
- if (GET_CODE (X) == REG)
- { return 1; }
-#endif
- if (GET_CODE (X) == PLUS)
- {
- if (GET_CODE (XEXP (X, 0)) == REG
- && GET_CODE (XEXP (X, 1)) == REG)
- return 2;
- return 1;
- }
- else if (GET_CODE (X) == LO_SUM)
- return 1;
- else if (GET_CODE (X) == HIGH)
- return 2;
- return 4;
-}
-
/* Emit insns to move operands[1] into operands[0].
Return 1 if we have written out everything that needs to be done to