[llvm] b3d8c0d - [Vectorize] Fix an 'unused variable' warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 18 11:25:17 PDT 2022
Author: Kazu Hirata
Date: 2022-03-18T11:24:54-07:00
New Revision: b3d8c0d069f22ef812f921d256b177f547795d07
URL: https://github.com/llvm/llvm-project/commit/b3d8c0d069f22ef812f921d256b177f547795d07
DIFF: https://github.com/llvm/llvm-project/commit/b3d8c0d069f22ef812f921d256b177f547795d07.diff
LOG: [Vectorize] Fix an 'unused variable' warning
This patch fixes:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:8148:18: error:
unused variable 'SDTE' [-Werror,-Wunused-variable]
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 16bcb613a6247..df196ca3fb5bb 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -8146,6 +8146,7 @@ void BoUpSLP::scheduleBlock(BlockScheduling *BS) {
I = I->getNextNode()) {
BS->doForAllOpcodes(I, [this, &Idx, &NumToSchedule, BS](ScheduleData *SD) {
TreeEntry *SDTE = getTreeEntry(SD->Inst);
+ (void)SDTE;
assert((isVectorLikeInstWithConstOps(SD->Inst) ||
SD->isPartOfBundle() ==
(SDTE && !doesNotNeedToSchedule(SDTE->Scalars))) &&
More information about the llvm-commits
mailing list