[X86] Add test case for a masked load mask becoming all ones after type legalization.
authorCraig Topper <craig.topper@intel.com>
Wed, 16 Sep 2020 19:20:38 +0000 (12:20 -0700)
committerCraig Topper <craig.topper@intel.com>
Wed, 16 Sep 2020 20:10:04 +0000 (13:10 -0700)
commit65ef2e50a29630f9f0fba4899045c0058dacfcb0
tree7b8a8e2ff9a18a8175b03de31aae0b2260eb7639
parentdee4686227842aa0e8380c7925049a5df9c4f781
[X86] Add test case for a masked load mask becoming all ones after type legalization.

We should be able to turn this into a unmasked load. X86 has an
optimization to detect that the first and last element aren't masked
and then turn the whole thing into an unmasked load and a blend.
That transform is disabled on avx512 though.

But if we know the blend isn't needed, then the unmasked load by
itself should always be profitable.
llvm/test/CodeGen/X86/masked_load.ll