[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h
Devang Patel
dpatel at apple.com
Thu Jun 21 10:24:08 PDT 2007
Changes in directory llvm/include/llvm/Analysis:
Dominators.h updated: 1.105 -> 1.106
---
Log message:
Move code to update dominator information after basic block is split
from LoopSimplify.cpp to Dominator.cpp
---
Diffs of the changes: (+10 -0)
Dominators.h | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.105 llvm/include/llvm/Analysis/Dominators.h:1.106
--- llvm/include/llvm/Analysis/Dominators.h:1.105 Tue Jun 12 12:30:56 2007
+++ llvm/include/llvm/Analysis/Dominators.h Thu Jun 21 12:23:45 2007
@@ -302,6 +302,11 @@
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
}
+
+ /// splitBlock
+ /// BB is split and now it has one successor. Update dominator tree to
+ /// reflect this change.
+ void splitBlock(BasicBlock *BB);
private:
void calculate(Function& F);
DomTreeNode *getNodeForBlock(BasicBlock *BB);
@@ -587,6 +592,11 @@
AU.addRequired<DominatorTree>();
}
+ /// splitBlock
+ /// BB is split and now it has one successor. Update dominace frontier to
+ /// reflect this change.
+ void splitBlock(BasicBlock *BB);
+
private:
const DomSetType &calculate(const DominatorTree &DT,
const DomTreeNode *Node);
More information about the llvm-commits
mailing list