[SLP] Fix -Wunused-variable. NFC

This commit is contained in:
Fangrui Song 2019-10-29 09:38:33 -07:00
parent 077fb58cd2
commit 39106fec47

View File

@ -5334,8 +5334,7 @@ bool SLPVectorizerPass::runImpl(Function &F, ScalarEvolution *SE_,
bool SLPVectorizerPass::vectorizeStoreChain(ArrayRef<Value *> Chain, BoUpSLP &R,
unsigned Idx) {
const unsigned ChainLen = Chain.size();
LLVM_DEBUG(dbgs() << "SLP: Analyzing a store chain of length " << ChainLen
LLVM_DEBUG(dbgs() << "SLP: Analyzing a store chain of length " << Chain.size()
<< "\n");
const unsigned Sz = R.getVectorElementSize(Chain[0]);
const unsigned MinVF = R.getMinVecRegSize() / Sz;