regclass.c (record_reg_classes): Always use may_move_cost when seeing how operand...
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Wed, 3 Nov 1999 02:52:18 +0000 (02:52 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 3 Nov 1999 02:52:18 +0000 (21:52 -0500)
* regclass.c (record_reg_classes): Always use may_move_cost when
seeing how operand fits with various register classes.

From-SVN: r30362

gcc/ChangeLog
gcc/regclass.c

index 715c41835cdb813e9925aecde7855a27003a437a..dd700bb2d358c1e7bc64f8767125d0c94413a28f 100644 (file)
@@ -1,3 +1,8 @@
+Tue Nov  2 21:53:44 1999  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * regclass.c (record_reg_classes): Always use may_move_cost when
+       seeing how operand fits with various register classes.
+
 Tue Nov  2 15:38:17 1999  Richard Henderson  <rth@cygnus.com>
 
        * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
index 46e61d2d33418ad442ec0ea68cab23828fb08cdd..dfbc85c629e9930ebed0aee9a4fee3c03e8134d1 100644 (file)
@@ -1249,7 +1249,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size,
                    pp->cost[class]
                      = (recog_data.operand_type[i] == OP_IN
                         ? may_move_cost[class][(int) classes[i]]
-                        : move_cost[(int) classes[i]][class]);
+                        : may_move_cost[(int) classes[i]][class]);
                  
                  /* If the alternative actually allows memory, make things
                     a bit cheaper since we won't need an extra insn to
@@ -1470,7 +1470,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size,
                    pp->cost[class]
                      = (recog_data.operand_type[i] == OP_IN
                         ? may_move_cost[class][(int) classes[i]]
-                        : move_cost[(int) classes[i]][class]);
+                        : may_move_cost[(int) classes[i]][class]);
 
                  /* If the alternative actually allows memory, make things
                     a bit cheaper since we won't need an extra insn to