Re: [PATCH][PR target/97770] x86: Add missing popcount2 expander

2020-11-30 Thread Hongyu Wang via Gcc-patches
> OK. Presumably once this is applied Richi is going to look at the > higher level issues in the vectorizer which inhibit creating the HI/QI > vector popcounts? > Yes, this is the prerequisite to look at the vectorization issue. I'll ask Hongtao to help check-in this patch. Thanks for the approv

Re: [PATCH][PR target/97770] x86: Add missing popcount2 expander

2020-11-30 Thread Jeff Law via Gcc-patches
On 11/11/20 6:54 PM, Hongyu Wang via Gcc-patches wrote: > Hi, > > According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97770, x86 > backend need popcount2 expander so __builtin_popcount could be > auto vectorized with AVX512BITALG/AVX512VPOPCNTDQ targets. > > For DImode the middle-end vecto

[PATCH][PR target/97770] x86: Add missing popcount2 expander

2020-11-11 Thread Hongyu Wang via Gcc-patches
Hi, According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97770, x86 backend need popcount2 expander so __builtin_popcount could be auto vectorized with AVX512BITALG/AVX512VPOPCNTDQ targets. For DImode the middle-end vectorizer could not generate expected code, and for QI/HImode there is no c