[Bug tree-optimization/126771] sub-optimal bool pattern for comparison converted to integer

"liuhongt at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126771

Hongtao Liu <liuhongt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |liuhongt at gcc dot gnu.org

--- Comment #4 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> Oh, this is also a x86 target issue as we miss vcond_mask_v2siqi for
> MMX-with-SSE.  We have vcond_mask_v2siv2si and vcond_mask_v2diqi but I'll
> note the
> vectorizer isn't able to switch between AVX512 and SSE style masking at will.
> We also miss vec_cmpv2sfqi, in practice this degrades MMX-with-SSE
> vectorization
> once AVX512VL is enabled.
> 


ix86_get_mask_mode always return vector mask for v2sf/v2si mask, so i thought
vcond_mask_v2sfqi/vec_cmpv2sfqi are not needed.

There could be mixed mask for different vector size/type from
ix86_get_mask_mode, .i.e Under avx512vl + avx512bw, v4si get kmask, but vector
mask for v2si, would that be a problem for the vectorizer?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.