[llvm] afd54e1 - [SLPVectorizer] Fix "unused variable" build warning
Djordje Todorovic via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 7 01:38:39 PST 2022
Author: Djordje Todorovic
Date: 2022-02-07T10:38:19+01:00
New Revision: afd54e1ed1da6730880c5cb7a1f647cd19ac3bc3
URL: https://github.com/llvm/llvm-project/commit/afd54e1ed1da6730880c5cb7a1f647cd19ac3bc3
DIFF: https://github.com/llvm/llvm-project/commit/afd54e1ed1da6730880c5cb7a1f647cd19ac3bc3.diff
LOG: [SLPVectorizer] Fix "unused variable" build warning
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 d8ab6c8dd527a..213fbf2ed38ef 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2760,12 +2760,14 @@ class BoUpSLP {
assert(SD && "primary scheduledata must exist in window");
assert(isInSchedulingRegion(SD) &&
"primary schedule data not in window?");
+ (void)SD;
doForAllOpcodes(I, [](ScheduleData *SD) { SD->verify(); });
}
for (auto *SD : ReadyInsts) {
assert(SD->isSchedulingEntity() && SD->isReady() &&
"item in ready list not ready?");
+ (void)SD;
}
}
More information about the llvm-commits
mailing list