summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-10-04 17:47:39 +0000
committerOwen Anderson <resistor@mac.com>2009-10-04 17:47:39 +0000
commita62bf106519d603773b7dc2df4ce6f2b5155a653 (patch)
treee84348358f68589513f23791ef056180e6185149 /llvm/lib/Transforms/Utils
parentcfd4ec022646f2451ecff5b238aa0b859770e868 (diff)
downloadbcm5719-llvm-a62bf106519d603773b7dc2df4ce6f2b5155a653.tar.gz
bcm5719-llvm-a62bf106519d603773b7dc2df4ce6f2b5155a653.zip
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. llvm-svn: 83282
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/SSI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/SSI.cpp b/llvm/lib/Transforms/Utils/SSI.cpp
index e5a1dd1bb73..305f60e7d70 100644
--- a/llvm/lib/Transforms/Utils/SSI.cpp
+++ b/llvm/lib/Transforms/Utils/SSI.cpp
@@ -37,9 +37,9 @@ STATISTIC(NumSigmaInserted, "Number of sigma functions inserted");
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) {
OpenPOWER on IntegriCloud