mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
[LoopRotate] Unconditionally get DomTree.
LoopRotate is a loop pass and the DomTree should always be available. Similar to a70c5261436322a53187d67b8bdc0445d0463a9a llvm-svn: 374036
This commit is contained in:
parent
13160fb6a6
commit
ec3fa11964
@ -94,8 +94,7 @@ public:
|
||||
auto *LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
|
||||
const auto *TTI = &getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F);
|
||||
auto *AC = &getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F);
|
||||
auto *DTWP = getAnalysisIfAvailable<DominatorTreeWrapperPass>();
|
||||
auto *DT = DTWP ? &DTWP->getDomTree() : nullptr;
|
||||
auto &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
|
||||
auto &SE = getAnalysis<ScalarEvolutionWrapperPass>().getSE();
|
||||
const SimplifyQuery SQ = getBestSimplifyQuery(*this, F);
|
||||
Optional<MemorySSAUpdater> MSSAU;
|
||||
@ -103,7 +102,7 @@ public:
|
||||
MemorySSA *MSSA = &getAnalysis<MemorySSAWrapperPass>().getMSSA();
|
||||
MSSAU = MemorySSAUpdater(MSSA);
|
||||
}
|
||||
return LoopRotation(L, LI, TTI, AC, DT, &SE,
|
||||
return LoopRotation(L, LI, TTI, AC, &DT, &SE,
|
||||
MSSAU.hasValue() ? MSSAU.getPointer() : nullptr, SQ,
|
||||
false, MaxHeaderSize, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user