[llvm-commits] CVS: llvm/include/llvm/Analysis/LoopInfo.h

Chris Lattner lattner at cs.uiuc.edu
Tue Jan 10 21:09:09 PST 2006



Changes in directory llvm/include/llvm/Analysis:

LoopInfo.h updated: 1.50 -> 1.51
---
Log message:

Switch loopinfo to using ETForest instead of DominatorSet to compute itself.Patch by Daniel Berlin!


---
Diffs of the changes:  (+3 -5)

 LoopInfo.h |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.50 llvm/include/llvm/Analysis/LoopInfo.h:1.51
--- llvm/include/llvm/Analysis/LoopInfo.h:1.50	Mon Sep 12 12:03:16 2005
+++ llvm/include/llvm/Analysis/LoopInfo.h	Tue Jan 10 23:08:57 2006
@@ -35,7 +35,7 @@
 
 namespace llvm {
 
-struct DominatorSet;
+struct ETForest;
 class LoopInfo;
 class PHINode;
 class Instruction;
@@ -267,8 +267,6 @@
   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 @@
 
   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);
 };






More information about the llvm-commits mailing list