diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-08-29 06:49:44 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-08-29 06:49:44 +0000 | 
| commit | abe61ef3b44948d8ff27d0b57bb210680bb86e56 (patch) | |
| tree | 606080080f294cf3a4657d57fca3887e6136f635 /llvm/lib/Transforms | |
| parent | 1dc98b47b5052aa25eae67c738d499e8c7671479 (diff) | |
| download | bcm5719-llvm-abe61ef3b44948d8ff27d0b57bb210680bb86e56.tar.gz bcm5719-llvm-abe61ef3b44948d8ff27d0b57bb210680bb86e56.zip | |
now that it doesn't use the PromoteMemToReg function, LICM doesn't
require DomFrontier.  Dropping this doesn't actually save any runs
of the pass though.
llvm-svn: 112418
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LICM.cpp | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 2c0579bb3ba..41d9e4c260d 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -75,7 +75,6 @@ namespace {      virtual void getAnalysisUsage(AnalysisUsage &AU) const {        AU.setPreservesCFG();        AU.addRequired<DominatorTree>(); -      AU.addRequired<DominanceFrontier>();  // For scalar promotion (mem2reg)        AU.addRequired<LoopInfo>();        AU.addRequiredID(LoopSimplifyID);        AU.addRequired<AliasAnalysis>(); @@ -98,8 +97,7 @@ namespace {      // Various analyses that we use...      AliasAnalysis *AA;       // Current AliasAnalysis information      LoopInfo      *LI;       // Current LoopInfo -    DominatorTree *DT;       // Dominator Tree for the current Loop... -    DominanceFrontier *DF;   // Current Dominance Frontier +    DominatorTree *DT;       // Dominator Tree for the current Loop.      // State that is updated as we process loops      bool Changed;            // Set to true when we change anything. @@ -222,7 +220,6 @@ bool LICM::runOnLoop(Loop *L, LPPassManager &LPM) {    // Get our Loop and Alias Analysis information...    LI = &getAnalysis<LoopInfo>();    AA = &getAnalysis<AliasAnalysis>(); -  DF = &getAnalysis<DominanceFrontier>();    DT = &getAnalysis<DominatorTree>();    CurAST = new AliasSetTracker(*AA); | 

