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: combine canonicalization tweeks



rth@cygnus.com said:
>         * combine.c (combine_simplify_rtx): Don't create an
> if_then_else
>         unless both args are general_operand.  Don't canonicalize plus
>         to ior unless it helps. 

I fear this will cause worse code on the ARM, since in this case we can 
support more complex expressions than general_operand; for example, we 
have patterns to match

	(if_then_else (comparison)
		(ior (ashiftrt (reg, const)) (reg))
		(reg))

and other very general patterns.

R.


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