diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-09-09 22:13:56 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-09-09 22:13:56 +0000 |
| commit | 66ef16b2890e57d4cc94e4ebf902a9ed741e8c26 (patch) | |
| tree | a6b14fd09e409f7c0489e8b59ae6f5a3c914cf8d /polly/lib/Analysis/ScopDetection.cpp | |
| parent | 13f11bba7d97c7cc0fcc3f33472868ad93e3485f (diff) | |
| download | bcm5719-llvm-66ef16b2890e57d4cc94e4ebf902a9ed741e8c26.tar.gz bcm5719-llvm-66ef16b2890e57d4cc94e4ebf902a9ed741e8c26.zip | |
[PM] Update Polly for the new AA infrastructure landed in r247167.
llvm-svn: 247198
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 34e19648a0b..6cc8f6a1a74 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -1064,7 +1064,7 @@ bool ScopDetection::runOnFunction(llvm::Function &F) { if (!DetectUnprofitable && LI->empty()) return false; - AA = &getAnalysis<AliasAnalysis>(); + AA = &getAnalysis<AAResultsWrapperPass>().getAAResults(); SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE(); Region *TopRegion = RI->getTopLevelRegion(); @@ -1129,7 +1129,7 @@ void ScopDetection::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LoopInfoWrapperPass>(); AU.addRequired<ScalarEvolutionWrapperPass>(); // We also need AA and RegionInfo when we are verifying analysis. - AU.addRequiredTransitive<AliasAnalysis>(); + AU.addRequiredTransitive<AAResultsWrapperPass>(); AU.addRequiredTransitive<RegionInfoPass>(); AU.setPreservesAll(); } @@ -1157,7 +1157,7 @@ Pass *polly::createScopDetectionPass() { return new ScopDetection(); } INITIALIZE_PASS_BEGIN(ScopDetection, "polly-detect", "Polly - Detect static control parts (SCoPs)", false, false); -INITIALIZE_AG_DEPENDENCY(AliasAnalysis); +INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass); INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass); INITIALIZE_PASS_DEPENDENCY(RegionInfoPass); INITIALIZE_PASS_DEPENDENCY(ScalarEvolutionWrapperPass); |

