diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-31 18:09:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-31 18:09:17 +0000 |
commit | a88d6ca6f954bb45819a9ee02fc2a0e0a0ac1689 (patch) | |
tree | 23131e145baddc9944ea937ff3b409643bb14408 /lib/Transforms | |
parent | ad58eb34342f70f094008e6d08cb4ed814754e64 (diff) |
Revert another incorrectly applied chunk, which fixes InstCombine/vec_insert_to_shuffle.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 39841d6cee..a47ecd0023 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -8992,13 +8992,6 @@ Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) { } } - // See if SimplifyDemandedVectorElts can simplify based on this shuffle. For - // example, if this is a splat, then we only demand from one input element. - uint64_t UndefElts; - if (Value *V = SimplifyDemandedVectorElts(&SVI, (1ULL << Mask.size())-1, - UndefElts)) - return ReplaceInstUsesWith(SVI, V); - return MadeChange ? &SVI : 0; } |