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]
Other format: [Raw text]

Re: [PATCH] Reassociate X == CST1 || X == CST2 if popcount (CST2 - CST1) == 1 into ((X - CST1) & ~(CST2 - CST1)) == 0


On Mon, Aug 05, 2013 at 01:39:50AM -0700, Andrew Pinski wrote:
> Seems like a better place to put this is inside tree-ssa-ifcombine.c
> which handles the case where if(a || b) is split up into if(a) else
> if(b).
> Moving it into tree-ssa-ifcombine.c allows for code to be optimized
> which was written using the if(a) else if(b) form.

No, tree-ssa-reassoc.c now handles both intra-bb and inter-bb range test
optimizations.

	Jakub


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