diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-06-03 23:15:20 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-06-03 23:15:20 +0000 |
commit | 4526d1cd4a4238f67710f98a1e44688b99fc3ba7 (patch) | |
tree | bf84c9e3cfdb4967d947c446bd0d301f20d883ea /lib/Transforms/InstCombine/InstCombineVectorOps.cpp | |
parent | 3931bdb788774e33dd623d6b9142ae69542c33aa (diff) | |
download | llvm-4526d1cd4a4238f67710f98a1e44688b99fc3ba7.tar.gz llvm-4526d1cd4a4238f67710f98a1e44688b99fc3ba7.tar.bz2 llvm-4526d1cd4a4238f67710f98a1e44688b99fc3ba7.tar.xz |
Delete dead safety check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineVectorOps.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index c76aa4c2e6..d43093d831 100644 --- a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp @@ -820,12 +820,7 @@ Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) { if (isRHSID) return ReplaceInstUsesWith(SVI, RHS); } - if (isa<UndefValue>(RHS) && - // This isn't necessary for correctness, but the comment block below - // claims that there are cases where folding two shuffles into one would - // cause worse codegen on some targets. - !isa<ShuffleVectorInst>(LHS) && - CanEvaluateShuffled(LHS, Mask)) { + if (isa<UndefValue>(RHS) && CanEvaluateShuffled(LHS, Mask)) { Value *V = EvaluateInDifferentElementOrder(LHS, Mask); return ReplaceInstUsesWith(SVI, V); } |