diff options
| author | Owen Anderson <resistor@mac.com> | 2007-04-07 05:31:27 +0000 | 
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2007-04-07 05:31:27 +0000 | 
| commit | f095bf3ac4e410441f69491591413189a3ac828a (patch) | |
| tree | c4e1284477082551fb504ad3737c8e51b330475d /llvm/lib/Transforms/IPO | |
| parent | beeeeb1428cb312cbdff784ea2e98f9619075284 (diff) | |
| download | bcm5719-llvm-f095bf3ac4e410441f69491591413189a3ac828a.tar.gz bcm5719-llvm-f095bf3ac4e410441f69491591413189a3ac828a.zip  | |
Expunge DomSet from CodeExtractor.  This is part of the continuing work
on PR1171.
llvm-svn: 35726
Diffstat (limited to 'llvm/lib/Transforms/IPO')
| -rw-r--r-- | llvm/lib/Transforms/IPO/LoopExtractor.cpp | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/IPO/LoopExtractor.cpp b/llvm/lib/Transforms/IPO/LoopExtractor.cpp index e99fa78a7d2..c5f4fca12af 100644 --- a/llvm/lib/Transforms/IPO/LoopExtractor.cpp +++ b/llvm/lib/Transforms/IPO/LoopExtractor.cpp @@ -43,7 +43,8 @@ namespace {      virtual void getAnalysisUsage(AnalysisUsage &AU) const {        AU.addRequiredID(BreakCriticalEdgesID);        AU.addRequiredID(LoopSimplifyID); -      AU.addRequired<DominatorSet>(); +      AU.addRequired<ETForest>(); +      AU.addRequired<DominatorTree>();        AU.addRequired<LoopInfo>();      }    }; @@ -72,7 +73,8 @@ bool LoopExtractor::runOnFunction(Function &F) {    if (LI.begin() == LI.end())      return false; -  DominatorSet &DS = getAnalysis<DominatorSet>(); +  ETForest &EF = getAnalysis<ETForest>(); +  DominatorTree &DT = getAnalysis<DominatorTree>();    // If there is more than one top-level loop in this function, extract all of    // the loops. @@ -81,7 +83,7 @@ bool LoopExtractor::runOnFunction(Function &F) {      for (LoopInfo::iterator i = LI.begin(), e = LI.end(); i != e; ++i) {        if (NumLoops == 0) return Changed;        --NumLoops; -      Changed |= ExtractLoop(DS, *i) != 0; +      Changed |= ExtractLoop(EF, DT, *i) != 0;        ++NumExtracted;      }    } else { @@ -111,7 +113,7 @@ bool LoopExtractor::runOnFunction(Function &F) {      if (ShouldExtractLoop) {        if (NumLoops == 0) return Changed;        --NumLoops; -      Changed |= ExtractLoop(DS, TLL) != 0; +      Changed |= ExtractLoop(EF, DT, TLL) != 0;        ++NumExtracted;      } else {        // Okay, this function is a minimal container around the specified loop. @@ -121,7 +123,7 @@ bool LoopExtractor::runOnFunction(Function &F) {        for (Loop::iterator i = TLL->begin(), e = TLL->end(); i != e; ++i) {          if (NumLoops == 0) return Changed;          --NumLoops; -        Changed |= ExtractLoop(DS, *i) != 0; +        Changed |= ExtractLoop(EF, DT, *i) != 0;          ++NumExtracted;        }      }  | 

