[ScalarizeMaskedMemIntrin] When expanding masked gathers, start with the passthru...
authorCraig Topper <craig.topper@intel.com>
Thu, 27 Sep 2018 21:28:59 +0000 (21:28 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 27 Sep 2018 21:28:59 +0000 (21:28 +0000)
commit6911bfe2634e1cf180699ab0f977f04e8bb066db
treeb13c9a7b8b252f965589c74449a13ae2343b1a2b
parent45ad631b4c22bdd37222ef8033286e7d22a7a6d5
[ScalarizeMaskedMemIntrin] When expanding masked gathers, start with the passthru vector and insert the new load results into it.

Previously we started with undef and did a final merge with the passthru at the end.

llvm-svn: 343273
llvm/lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
llvm/test/CodeGen/X86/avx2-masked-gather.ll
llvm/test/CodeGen/X86/masked_gather_scatter.ll
llvm/test/Transforms/ScalarizeMaskedMemIntrin/X86/expand-masked-gather.ll