diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-31 00:45:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-31 00:45:13 +0000 |
commit | a15854c9febcb60eb107048640b04abff8cc47e5 (patch) | |
tree | 2ca98ddbcce5d4d44618f17403511fe10c3f77f7 /lib/Transforms/Scalar/ScalarReplAggregates.cpp | |
parent | 7d8a86aa59f99c0d7880806e4efdc513ef8db73d (diff) |
ScalarRepl does not modify the CFG. Say so!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/ScalarReplAggregates.cpp')
-rw-r--r-- | lib/Transforms/Scalar/ScalarReplAggregates.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index e59a6e58ef..864f8764aa 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -23,6 +23,12 @@ namespace { struct SROA : public FunctionPass { bool runOnFunction(Function &F); + // getAnalysisUsage - This pass does not require any passes, but we know it + // will not alter the CFG, so say so. + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesCFG(); + } + private: bool isSafeElementUse(Value *Ptr); bool isSafeUseOfAllocation(Instruction *User); |