[llvm] 9f6f6af - LoopSimplify: strip dependency on DA (NFC) (#107379)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 08:25:01 PDT 2024
Author: Ramkumar Ramachandra
Date: 2024-10-01T16:24:57+01:00
New Revision: 9f6f6afa31b52792dc1ec8ffa960dff394c22c72
URL: https://github.com/llvm/llvm-project/commit/9f6f6afa31b52792dc1ec8ffa960dff394c22c72
DIFF: https://github.com/llvm/llvm-project/commit/9f6f6afa31b52792dc1ec8ffa960dff394c22c72.diff
LOG: LoopSimplify: strip dependency on DA (NFC) (#107379)
Since no passes compute DependenceAnalysis via the PassManager, there is
no value in preserving it here. Hence, strip the unnecessary dependency
on DependenceAnalysis.
Added:
Modified:
llvm/lib/Transforms/Utils/LoopSimplify.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
index 5e69923fd989dd..44fdfe530178a9 100644
--- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
@@ -47,7 +47,6 @@
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/BasicAliasAnalysis.h"
#include "llvm/Analysis/BranchProbabilityInfo.h"
-#include "llvm/Analysis/DependenceAnalysis.h"
#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/Analysis/LoopInfo.h"
@@ -762,7 +761,6 @@ namespace {
AU.addPreserved<ScalarEvolutionWrapperPass>();
AU.addPreserved<SCEVAAWrapperPass>();
AU.addPreservedID(LCSSAID);
- AU.addPreserved<DependenceAnalysisWrapperPass>();
AU.addPreservedID(BreakCriticalEdgesID); // No critical edges added.
AU.addPreserved<BranchProbabilityInfoWrapperPass>();
AU.addPreserved<MemorySSAWrapperPass>();
@@ -849,7 +847,6 @@ PreservedAnalyses LoopSimplifyPass::run(Function &F,
PA.preserve<DominatorTreeAnalysis>();
PA.preserve<LoopAnalysis>();
PA.preserve<ScalarEvolutionAnalysis>();
- PA.preserve<DependenceAnalysis>();
if (MSSAAnalysis)
PA.preserve<MemorySSAAnalysis>();
// BPI maps conditional terminators to probabilities, LoopSimplify can insert
More information about the llvm-commits
mailing list