]> gcc.gnu.org Git - gcc.git/commitdiff
(sparc_address_cost): Delete.
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 24 Jan 1994 22:55:49 +0000 (14:55 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 24 Jan 1994 22:55:49 +0000 (14:55 -0800)
From-SVN: r6424

gcc/config/sparc/sparc.c

index 16067e610f5686ac2988096e87a031932d59d86f..f85117bf118725e0f055247eae15662a8426e645 100644 (file)
@@ -821,39 +821,6 @@ finalize_pic ()
   emit_insn (gen_rtx (USE, VOIDmode, pic_offset_table_rtx));
 }
 \f
-/* 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;
-}
-\f
 /* Emit insns to move operands[1] into operands[0].
 
    Return 1 if we have written out everything that needs to be done to
This page took 0.073348 seconds and 5 git commands to generate.