if (rtx_equal_p (ops[j], op))
;
- /* If we can't put the other operand into a register, this
- alternative can't be used. */
-
- else if (classes[j] == NO_REGS)
- alt_fail = 1;
+ /* If we can put the other operand into a register, add to
+ the cost of this alternative the cost to copy this
+ operand to the register used for the other operand. */
- /* Otherwise, add to the cost of this alternative the cost
- to copy this operand to the register used for the other
- operand. */
-
- else
- alt_cost += copy_cost (op, mode, classes[j], 1);
+ if (classes[j] != NO_REGS)
+ alt_cost += copy_cost (op, mode, classes[j], 1), win = 1;
}
else if (GET_CODE (ops[j]) != REG
|| REGNO (ops[j]) < FIRST_PSEUDO_REGISTER)