]> git.ipfire.org Git - thirdparty/gcc.git/commit
Refine maskstore patterns with UNSPEC_MASKMOV.
authorliuhongt <hongtao.liu@intel.com>
Mon, 26 Jun 2023 13:07:09 +0000 (21:07 +0800)
committerliuhongt <hongtao.liu@intel.com>
Tue, 27 Jun 2023 07:29:43 +0000 (15:29 +0800)
commitdbf8ab449417aa24669f6ccf50be8c17f8c1278e
tree5a0e2ef8e255243117b0114b7e116237540e2c41
parent0b811120b0eb75d6ec01e3d09df9f94f29d7300c
Refine maskstore patterns with UNSPEC_MASKMOV.

Similar like r14-2070-gc79476da46728e

If mem_addr points to a memory region with less than whole vector size
bytes of accessible memory and k is a mask that would prevent reading
the inaccessible bytes from mem_addr, add UNSPEC_MASKMOV to prevent
it to be transformed to any other whole memory access instructions.

gcc/ChangeLog:

PR rtl-optimization/110237
* config/i386/sse.md (<avx512>_store<mode>_mask): Refine with
UNSPEC_MASKMOV.
(maskstore<mode><avx512fmaskmodelower): Ditto.
(*<avx512>_store<mode>_mask): New define_insn, it's renamed
from original <avx512>_store<mode>_mask.
gcc/config/i386/sse.md