This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/88473] AVX512: constant folding on mask does not remove unnecessary instructions
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Dec 2018 21:39:36 +0000
- Subject: [Bug target/88473] AVX512: constant folding on mask does not remove unnecessary instructions
- Auto-submitted: auto-generated
- References: <bug-88473-4@http.gcc.gnu.org/bugzilla/>
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.