Re: [PATCH] Handle CLRSB in nonzero_bits1

2011-08-23 Thread Richard Henderson
On 08/23/2011 10:52 AM, Jakub Jelinek wrote: > 2011-08-23 Jakub Jelinek > > * rtlanal.c (nonzero_bits1): Handle CLRSB. Ok. r~

[PATCH] Handle CLRSB in nonzero_bits1

2011-08-23 Thread Jakub Jelinek
Hi! While looking at PR50168, I've noticed that CLRSB isn't handled in nonzero_bits1 (while FFS/POPCOUNT/PARITY/CLZ/CTZ are). It means that combine can't optimize say clrsb insn followed by zero or sign extension of the result. Fixed thusly, ok for trunk? 2011-08-23 Jakub Jelinek * r