diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-14 16:57:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-14 16:57:08 +0000 |
commit | c3983653493a97d0da49cea6829348380c4717b8 (patch) | |
tree | fc685f50da67f078b2182b18bb335fe2dc15b4bd | |
parent | 67b94fb73d3cc1b93348b3a5675ad395b9f27227 (diff) | |
download | external_llvm-c3983653493a97d0da49cea6829348380c4717b8.zip external_llvm-c3983653493a97d0da49cea6829348380c4717b8.tar.gz external_llvm-c3983653493a97d0da49cea6829348380c4717b8.tar.bz2 |
LSR itself doesn't need DominatorTree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91282 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index b114f2e..3c8deac 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -26,7 +26,6 @@ #include "llvm/IntrinsicInst.h" #include "llvm/Type.h" #include "llvm/DerivedTypes.h" -#include "llvm/Analysis/Dominators.h" #include "llvm/Analysis/IVUsers.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/LoopPass.h" @@ -86,7 +85,6 @@ namespace { class LoopStrengthReduce : public LoopPass { IVUsers *IU; LoopInfo *LI; - DominatorTree *DT; ScalarEvolution *SE; bool Changed; @@ -118,12 +116,11 @@ namespace { // many analyses if they are around. AU.addPreservedID(LoopSimplifyID); AU.addPreserved<LoopInfo>(); - AU.addPreserved<DominanceFrontier>(); - AU.addPreserved<DominatorTree>(); + AU.addPreserved("domfrontier"); + AU.addPreserved("domtree"); AU.addRequiredID(LoopSimplifyID); AU.addRequired<LoopInfo>(); - AU.addRequired<DominatorTree>(); AU.addRequired<ScalarEvolution>(); AU.addPreserved<ScalarEvolution>(); AU.addRequired<IVUsers>(); @@ -2724,7 +2721,6 @@ bool LoopStrengthReduce::OptimizeLoopCountIV(Loop *L) { bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) { IU = &getAnalysis<IVUsers>(); LI = &getAnalysis<LoopInfo>(); - DT = &getAnalysis<DominatorTree>(); SE = &getAnalysis<ScalarEvolution>(); Changed = false; |