SuccessChanges

Summary

  1. [X86] Pre-commit test cases for D87863. NFC (details)
  2. [X86] Make reduceMaskedLoadToScalarLoad/reduceMaskedStoreToScalarStore work for avx512 after type legalization. (details)
Commit c89b3af0e3e970820ed35798ab2516459a8d829d by craig.topper
[X86] Pre-commit test cases for D87863. NFC
The file was modifiedllvm/test/CodeGen/X86/masked_load.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/masked_store.ll (diff)
Commit a74b1faba242e0ca4608e5d90495766a272758f0 by craig.topper
[X86] Make reduceMaskedLoadToScalarLoad/reduceMaskedStoreToScalarStore work for avx512 after type legalization.

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.

Differential Revision: https://reviews.llvm.org/D87863
The file was modifiedllvm/test/CodeGen/X86/masked_load.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/masked_store.ll (diff)
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp (diff)