[PATCH] D87863: [X86] Make reduceMaskedLoadToScalarLoad/reduceMaskedStoreToScalarStore work for avx512 after type legalization.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 15:34:49 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon, gpei.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
craig.topper requested review of this revision.

The scalar elements of the vXi1 build_vector will have been type legalized to i8 by padding with 0s. So we can't check for all ones. Instead we should just look at bit 0 of the constant.


https://reviews.llvm.org/D87863

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/masked_load.ll
  llvm/test/CodeGen/X86/masked_store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87863.292642.patch
Type: text/x-patch
Size: 5927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200917/a7e233d7/attachment.bin>


More information about the llvm-commits mailing list