[Bug target/88473] AVX512: constant folding on mask does not remove unnecessary instructions

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 12 21:39:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88473

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, if you want this constant folded, why are you using the _k* intrinsics at
all rather than just normal arithmetics on the __mmask8 etc. types?
The intrinsics are handled in GCC in a way to force those to be actually those
instructions.  We could surely implement those just by doing normal arithmetics
inside of the headers, but then it would be more likely that normal GPR
arithmetics would be used for those rather than mask logic etc. operations.


More information about the Gcc-bugs mailing list