* regclass.c (init_reg_sets_1): Don't assume cost 2 within
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2001 07:37:03 +0000 (07:37 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2001 07:37:03 +0000 (07:37 +0000)
        a register class.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45124 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/regclass.c

index f92e69b..eb088f3 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-23  Richard Henderson  <rth@redhat.com>
+
+       * regclass.c (init_reg_sets_1): Don't assume cost 2 within
+       a register class.
+
 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
 
        * reload1.c (emit_reload_insns): Don't look for notes
index 579a1ea..963fbfe 100644 (file)
@@ -518,7 +518,7 @@ init_reg_sets_1 ()
                  }
                else
                  {
-                   cost = i == j ? 2 : REGISTER_MOVE_COST (m, i, j);
+                   cost = REGISTER_MOVE_COST (m, i, j);
 
                    for (p2 = &reg_class_subclasses[j][0];
                         *p2 != LIM_REG_CLASSES;