diff options
| author | Michael Kruse <llvm@meinersbur.de> | 2016-12-15 09:25:14 +0000 |
|---|---|---|
| committer | Michael Kruse <llvm@meinersbur.de> | 2016-12-15 09:25:14 +0000 |
| commit | 7037fde42736440312406fee6b3f96daa4271c96 (patch) | |
| tree | 583a4dde8fbf94c92128575d98b6de974c10ee04 /polly/lib/Analysis/ScopBuilder.cpp | |
| parent | 8b54739328413e5931862225ff122905ccb530f0 (diff) | |
| download | bcm5719-llvm-7037fde42736440312406fee6b3f96daa4271c96.tar.gz bcm5719-llvm-7037fde42736440312406fee6b3f96daa4271c96.zip | |
Remove references to AssumptionCache. NFC.
The AssumptionCache was removed in r289756 after being replaced by the an
addtional operand list of affected values in r289755. The absence of that cache
means that we have now have to manually search for llvm.assume intrinsics as
now done by other passes (LazyValueInfo, CodeMetrics) do not take into
account an llvm::Instruction's user lists (ScalarEvolution).
llvm-svn: 289791
Diffstat (limited to 'polly/lib/Analysis/ScopBuilder.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopBuilder.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp index 81f503f914b..8be724b3a32 100644 --- a/polly/lib/Analysis/ScopBuilder.cpp +++ b/polly/lib/Analysis/ScopBuilder.cpp @@ -645,7 +645,7 @@ void ScopBuilder::addPHIReadAccess(PHINode *PHI) { ArrayRef<const SCEV *>(), ScopArrayInfo::MK_PHI); } -void ScopBuilder::buildScop(Region &R, AssumptionCache &AC) { +void ScopBuilder::buildScop(Region &R) { scop.reset(new Scop(R, SE, LI, *SD.getDetectionContext(&R))); buildStmts(R); @@ -669,12 +669,12 @@ void ScopBuilder::buildScop(Region &R, AssumptionCache &AC) { addArrayAccess(MemAccInst(GlobalRead), MemoryAccess::READ, BP, BP->getType(), false, {AF}, {nullptr}, GlobalRead); - scop->init(AA, AC, DT, LI); + scop->init(AA, DT, LI); } -ScopBuilder::ScopBuilder(Region *R, AssumptionCache &AC, AliasAnalysis &AA, - const DataLayout &DL, DominatorTree &DT, LoopInfo &LI, - ScopDetection &SD, ScalarEvolution &SE) +ScopBuilder::ScopBuilder(Region *R, AliasAnalysis &AA, const DataLayout &DL, + DominatorTree &DT, LoopInfo &LI, ScopDetection &SD, + ScalarEvolution &SE) : AA(AA), DL(DL), DT(DT), LI(LI), SD(SD), SE(SE) { Function *F = R->getEntry()->getParent(); @@ -684,7 +684,7 @@ ScopBuilder::ScopBuilder(Region *R, AssumptionCache &AC, AliasAnalysis &AA, std::string Msg = "SCoP begins here."; emitOptimizationRemarkAnalysis(F->getContext(), DEBUG_TYPE, *F, Beg, Msg); - buildScop(*R, AC); + buildScop(*R); DEBUG(scop->print(dbgs())); |

