Demanded elements support for masked.load and masked.gather
authorPhilip Reames <listmail@philipreames.com>
Tue, 19 Mar 2019 20:10:00 +0000 (20:10 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 19 Mar 2019 20:10:00 +0000 (20:10 +0000)
commit70537abe525cd6499feae5f34e5ae3d107a0f940
treec43cc3fe1b5d556d9b8ad7061bf6a0e06a5a4612
parent611d1f98c587b85b4eb60559ff774d73a34b102b
Demanded elements support for masked.load and masked.gather

Teach instcombine to propagate demanded elements through a masked load or masked gather instruction. This is in the broader context of improving vector pointer instcombine under https://reviews.llvm.org/D57140.

Differential Revision: https://reviews.llvm.org/D57372

llvm-svn: 356510
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/X86/x86-masked-memops.ll
llvm/test/Transforms/InstCombine/masked_intrinsics.ll