]> granicus.if.org Git - llvm/commit
Simplify operands of masked stores and scatters based on demanded elements
authorPhilip Reames <listmail@philipreames.com>
Wed, 20 Mar 2019 18:44:58 +0000 (18:44 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 20 Mar 2019 18:44:58 +0000 (18:44 +0000)
commit723e799c4dee01402a4425dd3c79ca5b5ef512ed
treedb6e3028cdec34856a8caee5e4db55cc40d45bb3
parent906007f75a69518035312c348eea855493adcef3
Simplify operands of masked stores and scatters based on demanded elements

If we know we're not storing a lane, we don't need to compute the lane. This could be improved by using the undef element result to further prune the mask, but I want to separate that into its own change since it's relatively likely to expose other problems.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356590 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
test/Transforms/InstCombine/masked_intrinsics.ll