[llvm] 5503455 - [SLP] Fix -Wunused-variable. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 09:39:03 PDT 2019
Author: Fangrui Song
Date: 2019-10-29T09:38:55-07:00
New Revision: 5503455ccb3f5fcedced158332c016c8d3a7fa81
URL: https://github.com/llvm/llvm-project/commit/5503455ccb3f5fcedced158332c016c8d3a7fa81
DIFF: https://github.com/llvm/llvm-project/commit/5503455ccb3f5fcedced158332c016c8d3a7fa81.diff
LOG: [SLP] Fix -Wunused-variable. NFC
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 83adec1450bc..c78d72a8695a 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -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;
More information about the llvm-commits
mailing list