[InstCombine] Masked loads with undef masks can fold to normal loads
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 14 Jul 2016 06:58:42 +0000 (06:58 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 14 Jul 2016 06:58:42 +0000 (06:58 +0000)
commit666aa945a540931451f82cd5e471bc969b1f87bc
tree9d05ef90105b086692889e7531f6550c775209c8
parent17a95aaa7b63bb7f41be61dc5327c9ea46765c6a
[InstCombine] Masked loads with undef masks can fold to normal loads

We were able to fold masked loads with an all-ones mask to a normal
load.  However, we couldn't turn a masked load with a mask with mixed
ones and undefs into a normal load.

llvm-svn: 275380
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/masked_intrinsics.ll