Patch to make some xforms preserve each other. Patch contributed by

Domagoj Babic!

llvm-svn: 28181
This commit is contained in:
Chris Lattner
2006-05-09 04:13:41 +00:00
parent 357f3e8231
commit 4fe87d67c4
5 changed files with 32 additions and 2 deletions

View File

@@ -32,6 +32,10 @@ Pass *llvm::createUnifyFunctionExitNodesPass() {
void UnifyFunctionExitNodes::getAnalysisUsage(AnalysisUsage &AU) const{
// We preserve the non-critical-edgeness property
AU.addPreservedID(BreakCriticalEdgesID);
// This is a cluster of orthogonal Transforms
AU.addPreservedID(PromoteMemoryToRegisterID);
AU.addPreservedID(LowerSelectID);
AU.addPreservedID(LowerSwitchID);
}
// UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new