[llvm] 13f0795 - [SLPVectorizer] Fix -Wunused-lambda-capture in -DLLVM_ENABLE_ASSERTIONS=off build
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 30 23:01:31 PDT 2022
Author: Fangrui Song
Date: 2022-08-30T23:01:22-07:00
New Revision: 13f0795425e9c8fbd19f8ac67f2638015365cd6a
URL: https://github.com/llvm/llvm-project/commit/13f0795425e9c8fbd19f8ac67f2638015365cd6a
DIFF: https://github.com/llvm/llvm-project/commit/13f0795425e9c8fbd19f8ac67f2638015365cd6a.diff
LOG: [SLPVectorizer] Fix -Wunused-lambda-capture in -DLLVM_ENABLE_ASSERTIONS=off build
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 d1e40a3ff2b14..50163102547f6 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -5823,6 +5823,7 @@ TTI::OperandValueInfo BoUpSLP::getOperandInfo(ArrayRef<Value *> VL,
const auto *Inst = cast<Instruction>(V);
assert(Inst->getOpcode() == I0->getOpcode() &&
"Expected same opcode");
+ (void)I0;
return !isConstant(Inst->getOperand(OpIdx));
}))
return {TTI::OK_AnyValue, TTI::OP_None};
More information about the llvm-commits
mailing list