}
void PredicateSimplifier::getAnalysisUsage(AnalysisUsage &AU) const {
+ AU.addRequiredID(BreakCriticalEdgesID);
AU.addRequired<DominatorTree>();
AU.setPreservesCFG();
+ AU.addPreservedID(BreakCriticalEdgesID);
}
// resolve catches cases addProperty won't because it wasn't used as a
PropertySet &NextPS) {
assert(edge < TI->getNumSuccessors() && "Invalid index for edge.");
- BasicBlock *BB = TI->getParent(),
- *BBNext = TI->getSuccessor(edge);
-
- if (BBNext->getSinglePredecessor() == BB)
- visitBasicBlock(BBNext, NextPS);
- else
- visitBasicBlock(BBNext, CurrentPS);
+ visitBasicBlock(TI->getSuccessor(edge), NextPS);
}
void PredicateSimplifier::proceedToSuccessors(PropertySet &KP,