[llvm-commits] [llvm] r83282 - /llvm/trunk/lib/Transforms/Utils/SSI.cpp
Owen Anderson
resistor at mac.com
Sun Oct 4 10:48:22 PDT 2009
Author: resistor
Date: Sun Oct 4 12:47:39 2009
New Revision: 83282
URL: http://llvm.org/viewvc/llvm-project?rev=83282&view=rev
Log:
SSI needs to require DT and DF transitively, since it uses them outside of its runOnFunction.
Similarly, it can be marked setPreservesAll, since it does no work in its runOnFunction.
Modified:
llvm/trunk/lib/Transforms/Utils/SSI.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SSI.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SSI.cpp?rev=83282&r1=83281&r2=83282&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SSI.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SSI.cpp Sun Oct 4 12:47:39 2009
@@ -37,9 +37,9 @@
STATISTIC(NumPhiInserted, "Number of phi functions inserted");
void SSI::getAnalysisUsage(AnalysisUsage &AU) const {
- AU.addRequired<DominanceFrontier>();
- AU.addRequired<DominatorTree>();
- AU.setPreservesCFG();
+ AU.addRequiredTransitive<DominanceFrontier>();
+ AU.addRequiredTransitive<DominatorTree>();
+ AU.setPreservesAll();
}
bool SSI::runOnFunction(Function &F) {
More information about the llvm-commits
mailing list