forked from OSchip/llvm-project
[PM/AA] Update to reflect the new LLVM API which no longer requires an
AliasAnalysis pointer. llvm-svn: 242897
This commit is contained in:
parent
a5b2e5e2a7
commit
e677f7217b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue