diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-01-11 05:08:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-01-11 05:08:57 +0000 |
| commit | 88f34be87f1a89beca07a80254c46679392bb2d3 (patch) | |
| tree | f71519e3734a7ece0df3bc6c3b930867f2947689 | |
| parent | 9db9f8a902afcce7e50eec2d7090093855d6197a (diff) | |
| download | bcm5719-llvm-88f34be87f1a89beca07a80254c46679392bb2d3.tar.gz bcm5719-llvm-88f34be87f1a89beca07a80254c46679392bb2d3.zip | |
Switch loopinfo to using ETForest instead of DominatorSet to compute itself.Patch by Daniel Berlin!
llvm-svn: 25200
| -rw-r--r-- | llvm/include/llvm/Analysis/LoopInfo.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h index 839b47ca297..dd278e76c8b 100644 --- a/llvm/include/llvm/Analysis/LoopInfo.h +++ b/llvm/include/llvm/Analysis/LoopInfo.h @@ -35,7 +35,7 @@ namespace llvm { -struct DominatorSet; +struct ETForest; class LoopInfo; class PHINode; class Instruction; @@ -267,8 +267,6 @@ public: virtual void releaseMemory(); void print(std::ostream &O, const Module* = 0) const; - /// getAnalysisUsage - Requires dominator sets - /// virtual void getAnalysisUsage(AnalysisUsage &AU) const; /// removeLoop - This removes the specified top-level loop from this loop info @@ -299,8 +297,8 @@ public: static void stub(); // Noop private: - void Calculate(const DominatorSet &DS); - Loop *ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS); + void Calculate(const ETForest &EF); + Loop *ConsiderForLoop(BasicBlock *BB, const ETForest &EF); void MoveSiblingLoopInto(Loop *NewChild, Loop *NewParent); void InsertLoopInto(Loop *L, Loop *Parent); }; |

