[llvm-commits] CVS: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 10 21:11:25 PST 2006
Changes in directory llvm/lib/Transforms/Utils:
BreakCriticalEdges.cpp updated: 1.28 -> 1.29
---
Log message:
Preserve and update ETForest. Patch by Daniel Berlin
---
Diffs of the changes: (+5 -0)
BreakCriticalEdges.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp
diff -u llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.28 llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.29
--- llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.28 Fri Aug 12 20:38:43 2005
+++ llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp Tue Jan 10 23:11:13 2006
@@ -34,6 +34,7 @@
virtual bool runOnFunction(Function &F);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ AU.addPreserved<ETForest>();
AU.addPreserved<DominatorSet>();
AU.addPreserved<ImmediateDominators>();
AU.addPreserved<DominatorTree>();
@@ -153,6 +154,10 @@
ID->addNewBlock(NewBB, TIBB);
}
+ // Update the forest?
+ if (ETForest *EF = P->getAnalysisToUpdate<ETForest>())
+ EF->addNewBlock(NewBB, TIBB);
+
// Should we update DominatorTree information?
if (DominatorTree *DT = P->getAnalysisToUpdate<DominatorTree>()) {
DominatorTree::Node *TINode = DT->getNode(TIBB);
More information about the llvm-commits
mailing list