Re: [PATCH][AArch64] Add zero_extend variants of logical+not ops

2015-04-21 Thread Richard Earnshaw
On 21/04/15 09:44, Kyrill Tkachov wrote: > Hi all, > > We were missing the patterns for the zero-extend versions of the > negated-logic ops, bic,orn,eon > leading to redundant zero-extends being generated for code like: > > unsigned long > bar (unsigned int a, unsigned int b) > { > return a ^ ~

[PATCH][AArch64] Add zero_extend variants of logical+not ops

2015-04-21 Thread Kyrill Tkachov
Hi all, We were missing the patterns for the zero-extend versions of the negated-logic ops, bic,orn,eon leading to redundant zero-extends being generated for code like: unsigned long bar (unsigned int a, unsigned int b) { return a ^ ~b; } unsigned long bar2 (unsigned int a, unsigned int b) {