virtual bool runOnFunction(Function &F);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ AU.addPreserved<ETForest>();
AU.addPreserved<DominatorSet>();
AU.addPreserved<ImmediateDominators>();
AU.addPreserved<DominatorTree>();
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);