[llvm] 1ed8b29 - [LoopVectorizationLegality] Drop unused variable (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 6 01:43:47 PDT 2022
Author: Nikita Popov
Date: 2022-07-06T10:43:39+02:00
New Revision: 1ed8b29302484b054d74e1db57504687c3ae8709
URL: https://github.com/llvm/llvm-project/commit/1ed8b29302484b054d74e1db57504687c3ae8709
DIFF: https://github.com/llvm/llvm-project/commit/1ed8b29302484b054d74e1db57504687c3ae8709.diff
LOG: [LoopVectorizationLegality] Drop unused variable (NFC)
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
index 59954429969e..183ba86abcb4 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
@@ -1168,7 +1168,6 @@ bool LoopVectorizationLegality::canVectorizeWithIfConvert() {
}
// Collect the blocks that need predication.
- BasicBlock *Header = TheLoop->getHeader();
for (BasicBlock *BB : TheLoop->blocks()) {
// We don't support switch statements inside loops.
if (!isa<BranchInst>(BB->getTerminator())) {
More information about the llvm-commits
mailing list