mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 19:15:30 +00:00
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
This commit is contained in:
parent
ad58eb3434
commit
a88d6ca6f9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user