aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit7aa3c781b4e3acadcdd7094deed14aa2e76ab625 (patch)
tree38c9081c63bb8b965275b37ad71a68652c516cbf /lib/Transforms/Utils
parent144034eace3cea6473b3e0f95a680995a4b3454e (diff)
downloadexternal_llvm-7aa3c781b4e3acadcdd7094deed14aa2e76ab625.zip
external_llvm-7aa3c781b4e3acadcdd7094deed14aa2e76ab625.tar.gz
external_llvm-7aa3c781b4e3acadcdd7094deed14aa2e76ab625.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/SSI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/SSI.cpp b/lib/Transforms/Utils/SSI.cpp
index e5a1dd1..305f60e 100644
--- a/lib/Transforms/Utils/SSI.cpp
+++ b/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) {