diff options
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 3 | ||||
| -rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 3 | ||||
| -rw-r--r-- | polly/lib/CodeGen/LoopGenerators.cpp | 3 | ||||
| -rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 2 | ||||
| -rw-r--r-- | polly/lib/Transform/DeLICM.cpp | 3 |
5 files changed, 5 insertions, 9 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 44b17824981..31ee882d0ce 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -344,8 +344,7 @@ bool ScopDetection::addOverApproximatedRegion(Region *AR, bool ScopDetection::onlyValidRequiredInvariantLoads( InvariantLoadsSetTy &RequiredILS, DetectionContext &Context) const { Region &CurRegion = Context.CurRegion; - const DataLayout &DL = - CurRegion.getEntry()->getParent()->getParent()->getDataLayout(); + const DataLayout &DL = CurRegion.getEntry()->getModule()->getDataLayout(); if (!PollyInvariantLoadHoisting && !RequiredILS.empty()) return false; diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index d02d06cb1dd..5ba8dc3ac86 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -408,8 +408,7 @@ Value *BlockGenerator::getOrCreateAlloca(const ScopArrayInfo *Array) { else NameExt = ".s2a"; - const DataLayout &DL = - Builder.GetInsertBlock()->getParent()->getParent()->getDataLayout(); + const DataLayout &DL = Builder.GetInsertBlock()->getModule()->getDataLayout(); Addr = new AllocaInst(Ty, DL.getAllocaAddrSpace(), ScalarBase->getName() + NameExt); diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp index 547c38d4a52..e5f13ff8f4d 100644 --- a/polly/lib/CodeGen/LoopGenerators.cpp +++ b/polly/lib/CodeGen/LoopGenerators.cpp @@ -281,8 +281,7 @@ ParallelLoopGenerator::storeValuesIntoStruct(SetVector<Value *> &Values) { for (Value *V : Values) Members.push_back(V->getType()); - const DataLayout &DL = - Builder.GetInsertBlock()->getParent()->getParent()->getDataLayout(); + const DataLayout &DL = Builder.GetInsertBlock()->getModule()->getDataLayout(); // We do not want to allocate the alloca inside any loop, thus we allocate it // in the entry block of the function and use annotations to denote the actual diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 3fe6713d53b..aeef7ecb2fb 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -2447,7 +2447,7 @@ public: LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo(); DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree(); SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE(); - DL = &S->getRegion().getEntry()->getParent()->getParent()->getDataLayout(); + DL = &S->getRegion().getEntry()->getModule()->getDataLayout(); RI = &getAnalysis<RegionInfoPass>().getRegionInfo(); // We currently do not support scops with invariant loads. diff --git a/polly/lib/Transform/DeLICM.cpp b/polly/lib/Transform/DeLICM.cpp index 866b92bdd3a..7edfc4f945b 100644 --- a/polly/lib/Transform/DeLICM.cpp +++ b/polly/lib/Transform/DeLICM.cpp @@ -1465,8 +1465,7 @@ private: ProcessAllIncoming(TargetStmt); auto AnyMapped = false; - auto &DL = - S->getRegion().getEntry()->getParent()->getParent()->getDataLayout(); + auto &DL = S->getRegion().getEntry()->getModule()->getDataLayout(); auto StoreSize = DL.getTypeAllocSize(TargetStoreMA->getAccessValue()->getType()); |

