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:
Alexey Bataev 2018-01-27 02:42:17 +00:00
parent 57175aa1e9
commit dce1614d75
1 changed files with 1 additions and 1 deletions

View File

@ -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;