Commit cc4c133a by Richard Stallman

(regclass): Consider commutativity even when

one arg is a constant.

From-SVN: r5985
parent 937aa51b
...@@ -757,13 +757,11 @@ regclass (f, nregs) ...@@ -757,13 +757,11 @@ regclass (f, nregs)
} }
/* Check for commutative in a separate loop so everything will /* Check for commutative in a separate loop so everything will
have been initialized. Don't bother doing anything if the have been initialized. We must do this even if one operand
second operand is a constant since that is the case is a constant--see addsi3 in m68k.md. */
for which the constraints should have been written. */
for (i = 0; i < noperands - 1; i++) for (i = 0; i < noperands - 1; i++)
if (constraints[i][0] == '%' if (constraints[i][0] == '%')
&& ! CONSTANT_P (recog_operand[i+1]))
{ {
char *xconstraints[MAX_RECOG_OPERANDS]; char *xconstraints[MAX_RECOG_OPERANDS];
int j; int j;
......
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