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.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D87863
[X86] Make reduceMaskedLoadToScalarLoad/reduceMaskedStoreToScalarStore work for avx512 after type legalization. ClosedPublic Authored by craig.topper on Sep 17 2020, 3:34 PM.
Details Summary 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.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Sep 20 2020, 6:27 AM Closed by commit rGa74b1faba242: [X86] Make reduceMaskedLoadToScalarLoad/reduceMaskedStoreToScalarStore work for… (authored by craig.topper). · Explain WhySep 20 2020, 3:15 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 292642 llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/masked_load.ll
llvm/test/CodeGen/X86/masked_store.ll
|