Commit df0afdbe by Jeffrey A Law Committed by Jeff Law

+ * simplify-rtx.c (simplify_rtx): Use swap_commutative_operands_p.

+       * simplify-rtx.c (simplify_rtx): Use swap_commutative_operands_p.
Forgot to commit Friday.

From-SVN: r43692
parent b9063b3d
...@@ -98,6 +98,8 @@ Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> ...@@ -98,6 +98,8 @@ Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fri Jun 29 12:27:24 2001 Jeffrey A Law (law@cygnus.com) Fri Jun 29 12:27:24 2001 Jeffrey A Law (law@cygnus.com)
* simplify-rtx.c (simplify_rtx): Use swap_commutative_operands_p.
* doc/gcc.texi (Passes): Update due to recent -fdce -> -fssa-dce * doc/gcc.texi (Passes): Update due to recent -fdce -> -fssa-dce
changes. Fix documentation for SSA DCE pass. changes. Fix documentation for SSA DCE pass.
......
...@@ -2526,14 +2526,7 @@ simplify_rtx (x) ...@@ -2526,14 +2526,7 @@ simplify_rtx (x)
return simplify_unary_operation (code, mode, return simplify_unary_operation (code, mode,
XEXP (x, 0), GET_MODE (XEXP (x, 0))); XEXP (x, 0), GET_MODE (XEXP (x, 0)));
case 'c': case 'c':
/* Put complex operands first and constants second if commutative. */ if (swap_commutative_operands_p (XEXP (x, 0), XEXP (x, 1)))
if (GET_RTX_CLASS (code) == 'c'
&& ((CONSTANT_P (XEXP (x, 0)) && GET_CODE (XEXP (x, 1)) != CONST_INT)
|| (GET_RTX_CLASS (GET_CODE (XEXP (x, 0))) == 'o'
&& GET_RTX_CLASS (GET_CODE (XEXP (x, 1))) != 'o')
|| (GET_CODE (XEXP (x, 0)) == SUBREG
&& GET_RTX_CLASS (GET_CODE (SUBREG_REG (XEXP (x, 0)))) == 'o'
&& GET_RTX_CLASS (GET_CODE (XEXP (x, 1))) != 'o')))
{ {
rtx tem; rtx tem;
......
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