Commit cf6bcbd0 by Roger Sayle Committed by Roger Sayle

simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap commutative…

simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap commutative operands instead of modifying the...


	* simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
	commutative operands instead of modifying the RTL in-place.

From-SVN: r69539
parent 2b187c63
2003-07-17 Roger Sayle <roger@eyesopen.com>
* simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
commutative operands instead of modifying the RTL in-place.
2003-07-17 Mark Mitchell <mark@codesourcery.com>
PR optimization/11557
......
......@@ -3052,15 +3052,9 @@ simplify_rtx (rtx x)
XEXP (x, 0), GET_MODE (XEXP (x, 0)));
case 'c':
if (swap_commutative_operands_p (XEXP (x, 0), XEXP (x, 1)))
{
rtx tem;
return simplify_gen_binary (code, mode, XEXP (x, 1), XEXP (x, 0));
tem = XEXP (x, 0);
XEXP (x, 0) = XEXP (x, 1);
XEXP (x, 1) = tem;
return simplify_binary_operation (code, mode,
XEXP (x, 0), XEXP (x, 1));
}
/* ... fall through ... */
case '2':
return simplify_binary_operation (code, mode, XEXP (x, 0), XEXP (x, 1));
......
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