]> gcc.gnu.org Git - gcc.git/commitdiff
(record_reg_classes): There is no alt_cost
authorRichard Stallman <rms@gnu.org>
Tue, 5 Oct 1993 03:07:03 +0000 (03:07 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 5 Oct 1993 03:07:03 +0000 (03:07 +0000)
for a pair of matching args if they are the same pseudo reg.

From-SVN: r5597

gcc/regclass.c

index be78332546ed1b6bc4a99fcf7e344b3c24a5ab0e..20b0b8a98244523f84c6a058f39e1ff8aab9cea3 100644 (file)
@@ -998,8 +998,10 @@ record_reg_classes (n_alts, n_ops, ops, modes, constraints, insn)
                     instruction.  */
 
                  this_op_costs[i] = this_op_costs[j];
-                 if (! find_reg_note (insn, REG_DEAD, op))
-                   alt_cost += 2;
+                 if (! (GET_CODE (op) == REG && rtx_equal_p (op, ops[j])))
+                   /* No cost if both are the same pseudo reg.  */
+                   if (! find_reg_note (insn, REG_DEAD, op))
+                     alt_cost += 2;
 
                  /* This is in place of ordinary cost computation
                     for this operand, so skip to the end of the
This page took 0.067417 seconds and 5 git commands to generate.