diff options
author | Owen Anderson <resistor@mac.com> | 2009-10-04 17:47:39 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-10-04 17:47:39 +0000 |
commit | 7aa3c781b4e3acadcdd7094deed14aa2e76ab625 (patch) | |
tree | 38c9081c63bb8b965275b37ad71a68652c516cbf /lib/Transforms/Utils/SSI.cpp | |
parent | 144034eace3cea6473b3e0f95a680995a4b3454e (diff) |
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/SSI.cpp')
-rw-r--r-- | lib/Transforms/Utils/SSI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/SSI.cpp b/lib/Transforms/Utils/SSI.cpp index e5a1dd1bb7..305f60e7d7 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) { |