OSDN Git Service

[X86] Add test case for masked load with constant mask and all zeros passthru.
authorCraig Topper <craig.topper@intel.com>
Thu, 6 Jun 2019 05:41:22 +0000 (05:41 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 6 Jun 2019 05:41:22 +0000 (05:41 +0000)
commit8460bef00e4512a940fa9f21e3b7686a2c610b90
tree53d9a9b193a2ae055c92d6c8f0212b1b2f8d9320
parente3fd2a343a10616bd1d7e010c32c675fc934802e
[X86] Add test case for masked load with constant mask and all zeros passthru.

avx/avx2 masked loads only support all zeros for passthru in hardware.
So we have to emit a blend for all other values. We have an optimization
that tries to optimize this blend if the mask is constant. But we
don't need to perform this optimization if the passthru value is zero
which doesn't need the blend at all.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362674 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/masked_load.ll