From 66ef16b2890e57d4cc94e4ebf902a9ed741e8c26 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 9 Sep 2015 22:13:56 +0000 Subject: [PM] Update Polly for the new AA infrastructure landed in r247167. llvm-svn: 247198 --- polly/lib/Analysis/ScopDetection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'polly/lib/Analysis/ScopDetection.cpp') 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(); + AA = &getAnalysis().getAAResults(); SE = &getAnalysis().getSE(); Region *TopRegion = RI->getTopLevelRegion(); @@ -1129,7 +1129,7 @@ void ScopDetection::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired(); AU.addRequired(); // We also need AA and RegionInfo when we are verifying analysis. - AU.addRequiredTransitive(); + AU.addRequiredTransitive(); AU.addRequiredTransitive(); 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); -- cgit v1.2.3