aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-09 04:13:41 +0000
committerChris Lattner <sabre@nondot.org>2006-05-09 04:13:41 +0000
commit4fe87d67c4cc9b245b465652ded51e062480d5bc (patch)
treea3c0341474c80bec38e688044bde1f973c5e830a /llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
parent357f3e8231be778e859026ffc1795ad933bcd366 (diff)
downloadllvm-4fe87d67c4cc9b245b465652ded51e062480d5bc.zip
llvm-4fe87d67c4cc9b245b465652ded51e062480d5bc.tar.gz
llvm-4fe87d67c4cc9b245b465652ded51e062480d5bc.tar.bz2
Patch to make some xforms preserve each other. Patch contributed by
Domagoj Babic! llvm-svn: 28181
Diffstat (limited to 'llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
index 0c1eda7..d3c7b32 100644
--- a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
+++ b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
@@ -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