]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
reload1.c (ior_hard_reg_set): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 18 Oct 2004 23:54:36 +0000 (23:54 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 18 Oct 2004 23:54:36 +0000 (23:54 +0000)
* reload1.c (ior_hard_reg_set): Remove.
(finish_spills): Use IOR_HARD_REG_SET instead of
ior_hard_reg_set.

From-SVN: r89258

gcc/ChangeLog
gcc/reload1.c

index da41f7f4dd4cfe7f29b96e1e0e172a87acaf1bab..e3cc16405afd34bf86d11bc8c4f920ac62b22745 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * reload1.c (ior_hard_reg_set): Remove.
+       (finish_spills): Use IOR_HARD_REG_SET instead of
+       ior_hard_reg_set.
+
 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
 
        * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
index e35f1210c0ca3cd9692752c1bb4c020a937b62c4..106d547a1bdc98dffcd6620b0a4ee918de53cbe9 100644 (file)
@@ -390,7 +390,6 @@ static void init_elim_table (void);
 static void update_eliminables (HARD_REG_SET *);
 static void spill_hard_reg (unsigned int, int);
 static int finish_spills (int);
-static void ior_hard_reg_set (HARD_REG_SET *, HARD_REG_SET *);
 static void scan_paradoxical_subregs (rtx);
 static void count_pseudo (int);
 static void order_regs_for_reload (struct insn_chain *);
@@ -3534,15 +3533,6 @@ spill_hard_reg (unsigned int regno, int cant_eliminate)
       SET_REGNO_REG_SET (&spilled_pseudos, i);
 }
 
-/* I'm getting weird preprocessor errors if I use IOR_HARD_REG_SET
-   from within EXECUTE_IF_SET_IN_REG_SET.  Hence this awkwardness.  */
-
-static void
-ior_hard_reg_set (HARD_REG_SET *set1, HARD_REG_SET *set2)
-{
-  IOR_HARD_REG_SET (*set1, *set2);
-}
-
 /* After find_reload_regs has been run for all insn that need reloads,
    and/or spill_hard_regs was called, this function is used to actually
    spill pseudo registers and try to reallocate them.  It also sets up the
@@ -3607,14 +3597,14 @@ finish_spills (int global)
          EXECUTE_IF_SET_IN_REG_SET
            (&chain->live_throughout, FIRST_PSEUDO_REGISTER, i, rsi)
            {
-             ior_hard_reg_set (pseudo_forbidden_regs + i,
-                               &chain->used_spill_regs);
+             IOR_HARD_REG_SET (pseudo_forbidden_regs[i],
+                               chain->used_spill_regs);
            }
          EXECUTE_IF_SET_IN_REG_SET
            (&chain->dead_or_set, FIRST_PSEUDO_REGISTER, i, rsi)
            {
-             ior_hard_reg_set (pseudo_forbidden_regs + i,
-                               &chain->used_spill_regs);
+             IOR_HARD_REG_SET (pseudo_forbidden_regs[i],
+                               chain->used_spill_regs);
            }
        }