This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Minor simplify_rtx improvement


+       /* Put complex operands first and constants second if commutative.  */
+       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')))
+ 	{

This should call swap_commutative_operands_p (in rtlanal.c).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]