diff options
author | James Molloy <james.molloy@arm.com> | 2015-09-10 10:22:12 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-09-10 10:22:12 +0000 |
commit | efbba72cb282c80bb4bebae0f52e3a43b95fbd55 (patch) | |
tree | fc823a4809359710866175d4337d7ef3317e3af2 /llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp | |
parent | 7dc7771cd58ee9079a035be5e445c69ec1bba808 (diff) | |
download | llvm-efbba72cb282c80bb4bebae0f52e3a43b95fbd55.zip llvm-efbba72cb282c80bb4bebae0f52e3a43b95fbd55.tar.gz llvm-efbba72cb282c80bb4bebae0f52e3a43b95fbd55.tar.bz2 |
Add GlobalsAA as preserved to a bunch of transforms
GlobalsAA must by definition be preserved in function passes, but the passmanager doesn't know that. Make each pass explicitly preserve GlobalsAA.
llvm-svn: 247263
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp index 231411a..c766fae 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp @@ -25,6 +25,7 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/Statistic.h" +#include "llvm/Analysis/GlobalsModRef.h" #include "llvm/Analysis/AssumptionCache.h" #include "llvm/Analysis/TargetTransformInfo.h" #include "llvm/IR/Attributes.h" @@ -217,6 +218,7 @@ struct CFGSimplifyPass : public FunctionPass { void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<AssumptionCacheTracker>(); AU.addRequired<TargetTransformInfoWrapperPass>(); + AU.addPreserved<GlobalsAAWrapperPass>(); } }; } |