Commit d9771f62 by Jim Wilson

(form_sum): Undo Sep 28 change.

From-SVN: r5548
parent 0e54aab2
...@@ -4327,10 +4327,7 @@ form_sum (x, y) ...@@ -4327,10 +4327,7 @@ form_sum (x, y)
/* Note that if the operands of Y are specified in the opposite /* Note that if the operands of Y are specified in the opposite
order in the recursive calls below, infinite recursion will occur. */ order in the recursive calls below, infinite recursion will occur. */
if (GET_CODE (y) == PLUS && CONSTANT_P (XEXP (y, 1)) if (GET_CODE (y) == PLUS && CONSTANT_P (XEXP (y, 1)))
/* Moving the constant in with the MEM yields rtl that reload may not
be able to handle when this is an address calculation. */
&& GET_CODE (x) != MEM)
return form_sum (form_sum (x, XEXP (y, 0)), XEXP (y, 1)); return form_sum (form_sum (x, XEXP (y, 0)), XEXP (y, 1));
/* If both constant, encapsulate sum. Otherwise, just form sum. A /* If both constant, encapsulate sum. Otherwise, just form sum. A
......
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