[PM/AA] Update to reflect the new LLVM API which no longer requires an

AliasAnalysis pointer.

llvm-svn: 242897
This commit is contained in:
Chandler Carruth 2015-07-22 12:15:33 +00:00
parent a5b2e5e2a7
commit e677f7217b
1 changed files with 1 additions and 2 deletions

View File

@ -92,13 +92,12 @@ BasicBlock *polly::createSingleExitEdge(Region *R, Pass *P) {
if (R->contains(*PI))
Preds.push_back(*PI);
auto *AA = P->getAnalysisIfAvailable<AliasAnalysis>();
auto *DTWP = P->getAnalysisIfAvailable<DominatorTreeWrapperPass>();
auto *DT = DTWP ? &DTWP->getDomTree() : nullptr;
auto *LIWP = P->getAnalysisIfAvailable<LoopInfoWrapperPass>();
auto *LI = LIWP ? &LIWP->getLoopInfo() : nullptr;
return SplitBlockPredecessors(BB, Preds, ".region", AA, DT, LI);
return SplitBlockPredecessors(BB, Preds, ".region", DT, LI);
}
static void replaceScopAndRegionEntry(polly::Scop *S, BasicBlock *OldEntry,