forked from OSchip/llvm-project
Revert "[SLP] Removed the warning about unused variable, NFC."
This reverts commit r323533 to fix possible problems in users code. llvm-svn: 323580
This commit is contained in:
parent
57175aa1e9
commit
dce1614d75
|
@ -2853,7 +2853,7 @@ Value *BoUpSLP::vectorizeTree(ArrayRef<Value *> VL) {
|
|||
if (VL.size() == E->Scalars.size() && !E->ReuseShuffleIndices.empty()) {
|
||||
// We need to get the vectorized value but without shuffle.
|
||||
if (auto *SV = dyn_cast<ShuffleVectorInst>(V)) {
|
||||
V = SV->getOperand(0);
|
||||
V = cast<ShuffleVectorInst>(V)->getOperand(0);
|
||||
} else {
|
||||
// Reshuffle to get only unique values.
|
||||
SmallVector<unsigned, 4> UniqueIdxs;
|
||||
|
|
Loading…
Reference in New Issue