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

Owen Anderson resistor at mac.com
Sat Apr 14 16:49:51 PDT 2007



Changes in directory llvm/include/llvm/Analysis:

Dominators.h updated: 1.69 -> 1.70
---
Log message:

Make ETForest depend on DomTree rather than IDom.  This is the first step
in the long process that will be fixing PR 217: http://llvm.org/PR217 .


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

 Dominators.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.69 llvm/include/llvm/Analysis/Dominators.h:1.70
--- llvm/include/llvm/Analysis/Dominators.h:1.69	Sun Apr  8 23:07:36 2007
+++ llvm/include/llvm/Analysis/Dominators.h	Sat Apr 14 18:49:24 2007
@@ -422,7 +422,7 @@
 
   virtual void getAnalysisUsage(AnalysisUsage &AU) const {
     AU.setPreservesAll();
-    AU.addRequired<ImmediateDominators>();
+    AU.addRequired<DominatorTree>();
   }
   //===--------------------------------------------------------------------===//
   // API to update Forest information based on modifications
@@ -480,13 +480,13 @@
 
   virtual bool runOnFunction(Function &F) {
     reset();     // Reset from the last time we were run...
-    ImmediateDominators &ID = getAnalysis<ImmediateDominators>();
-    Roots = ID.getRoots();
-    calculate(ID);
+    DominatorTree &DT = getAnalysis<DominatorTree>();
+    Roots = DT.getRoots();
+    calculate(DT);
     return false;
   }
 
-  void calculate(const ImmediateDominators &ID);
+  void calculate(const DominatorTree &DT);
   ETNode *getNodeForBlock(BasicBlock *BB);
 };
 






More information about the llvm-commits mailing list