[llvm] 6f2d013 - [LoopPredication] Remove unused variable
Anna Thomas via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 07:40:57 PDT 2021
Author: Anna Thomas
Date: 2021-09-30T10:40:47-04:00
New Revision: 6f2d01376d2da4e73e0dc5d339f6e5b1646a9c25
URL: https://github.com/llvm/llvm-project/commit/6f2d01376d2da4e73e0dc5d339f6e5b1646a9c25
DIFF: https://github.com/llvm/llvm-project/commit/6f2d01376d2da4e73e0dc5d339f6e5b1646a9c25.diff
LOG: [LoopPredication] Remove unused variable
After rG452714f8f8037ff37f9358317651d1652e231db2, the Function `F` retrieved in LoopPredication is not used.
Remove this unused variable to stop some buildbots (ASAN, clang-ppc) from failing.
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopPredication.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopPredication.cpp b/llvm/lib/Transforms/Scalar/LoopPredication.cpp
index 4eeb295590f7..d8ddcd6a18cc 100644
--- a/llvm/lib/Transforms/Scalar/LoopPredication.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopPredication.cpp
@@ -366,7 +366,6 @@ Pass *llvm::createLoopPredicationPass() {
PreservedAnalyses LoopPredicationPass::run(Loop &L, LoopAnalysisManager &AM,
LoopStandardAnalysisResults &AR,
LPMUpdater &U) {
- Function *F = L.getHeader()->getParent();
std::unique_ptr<MemorySSAUpdater> MSSAU;
if (AR.MSSA)
MSSAU = std::make_unique<MemorySSAUpdater>(AR.MSSA);
More information about the llvm-commits
mailing list