On Tue, Jul 21, 2015 at 05:40:07PM -0700, Andrew Pinski wrote: > The biggest question now becomes which way is the canonical form for > gimple and we can decide to optimize it on the RTL level (combine) > instead if it produces better code in those cases.
combine does not do instruction selection in general; it only does instruction combination. It already handles most cases where shifts and masks are combined; if you find one where it doesn't, please report. Segher