]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(choose_hard_reg_mode): Delete from here.
authorDoug Evans <dje@gnu.org>
Wed, 20 Apr 1994 03:36:09 +0000 (03:36 +0000)
committerDoug Evans <dje@gnu.org>
Wed, 20 Apr 1994 03:36:09 +0000 (03:36 +0000)
From-SVN: r7086

gcc/caller-save.c

index 35d457313594019eeda9ac4fef27161426acaf0b..c0aafec0654939d89d76ac830db6dfcc7eea2910 100644 (file)
@@ -77,53 +77,12 @@ static HARD_REG_SET hard_regs_need_restore;
 
 int n_regs_saved;
 
-static enum machine_mode choose_hard_reg_mode PROTO((int, int));
 static void set_reg_live               PROTO((rtx, rtx));
 static void clear_reg_live             PROTO((rtx));
 static void restore_referenced_regs    PROTO((rtx, rtx, enum machine_mode));
 static int insert_save_restore         PROTO((rtx, int, int,
                                               enum machine_mode, int));
 \f
-/* Return a machine mode that is legitimate for hard reg REGNO and large
-   enough to save nregs.  If we can't find one, return VOIDmode.  */
-
-static enum machine_mode
-choose_hard_reg_mode (regno, nregs)
-     int regno;
-     int nregs;
-{
-  enum machine_mode found_mode = VOIDmode, mode;
-
-  /* We first look for the largest integer mode that can be validly
-     held in REGNO.  If none, we look for the largest floating-point mode.
-     If we still didn't find a valid mode, try CCmode.  */
-
-  for (mode = GET_CLASS_NARROWEST_MODE (MODE_INT); mode != VOIDmode;
-       mode = GET_MODE_WIDER_MODE (mode))
-    if (HARD_REGNO_NREGS (regno, mode) == nregs
-       && HARD_REGNO_MODE_OK (regno, mode))
-      found_mode = mode;
-
-  if (found_mode != VOIDmode)
-    return found_mode;
-
-  for (mode = GET_CLASS_NARROWEST_MODE (MODE_FLOAT); mode != VOIDmode;
-       mode = GET_MODE_WIDER_MODE (mode))
-    if (HARD_REGNO_NREGS (regno, mode) == nregs
-       && HARD_REGNO_MODE_OK (regno, mode))
-      found_mode = mode;
-
-  if (found_mode != VOIDmode)
-    return found_mode;
-
-  if (HARD_REGNO_NREGS (regno, CCmode) == nregs
-      && HARD_REGNO_MODE_OK (regno, CCmode))
-    return CCmode;
-
-  /* We can't find a mode valid for this register.  */
-  return VOIDmode;
-}
-\f
 /* Initialize for caller-save.
 
    Look at all the hard registers that are used by a call and for which