Commit 37747c82 by Richard Kenner

(record_reg_classes): Check if operands are the same by seeing if they

are the same register.

From-SVN: r5632
parent 2bb81c86
...@@ -998,10 +998,9 @@ record_reg_classes (n_alts, n_ops, ops, modes, constraints, insn) ...@@ -998,10 +998,9 @@ record_reg_classes (n_alts, n_ops, ops, modes, constraints, insn)
instruction. */ instruction. */
this_op_costs[i] = this_op_costs[j]; this_op_costs[i] = this_op_costs[j];
if (! (GET_CODE (op) == REG && rtx_equal_p (op, ops[j]))) if (REGNO (ops[i]) != REGNO (ops[j])
/* No cost if both are the same pseudo reg. */ && ! find_reg_note (insn, REG_DEAD, op))
if (! find_reg_note (insn, REG_DEAD, op)) alt_cost += 2;
alt_cost += 2;
/* This is in place of ordinary cost computation /* This is in place of ordinary cost computation
for this operand, so skip to the end of the for this operand, so skip to the end of the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment