[llvm-commits] CVS: llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon May 8 21:13:54 PDT 2006
Changes in directory llvm/lib/Transforms/Utils:
UnifyFunctionExitNodes.cpp updated: 1.33 -> 1.34
---
Log message:
Patch to make some xforms preserve each other. Patch contributed by
Domagoj Babic!
---
Diffs of the changes: (+4 -0)
UnifyFunctionExitNodes.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
diff -u llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp:1.33 llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp:1.34
--- llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp:1.33 Thu Apr 21 18:45:34 2005
+++ llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp Mon May 8 23:13:41 2006
@@ -32,6 +32,10 @@
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
More information about the llvm-commits
mailing list