[InstCombine] remove unnecessary shuffle undef folding
authorSanjay Patel <spatel@rotateright.com>
Wed, 29 Aug 2018 13:24:34 +0000 (13:24 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 29 Aug 2018 13:24:34 +0000 (13:24 +0000)
commit7a05641fa8ee27682514d5c40dd344f4a557b03c
tree9ef929061098cc5868b3d54018ea4f1f90f473cb
parentf6db5bcd381e5f0e5970e74a9b15c6a1e804b80f
[InstCombine] remove unnecessary shuffle undef folding

Add a test for constant folding to show that
(shuffle undef, undef, mask)
should already be handled via instsimplify.

llvm-svn: 340926
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Analysis/ConstantFolding/vector-undef-elts.ll