diff options
Diffstat (limited to 'polly/lib/Analysis/TempScopInfo.cpp')
-rw-r--r-- | polly/lib/Analysis/TempScopInfo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/polly/lib/Analysis/TempScopInfo.cpp b/polly/lib/Analysis/TempScopInfo.cpp index 62dc47cd69f..3b2a4510664 100644 --- a/polly/lib/Analysis/TempScopInfo.cpp +++ b/polly/lib/Analysis/TempScopInfo.cpp @@ -176,11 +176,11 @@ IRAccess TempScopInfo::buildIRAccess(Instruction *Inst, Loop *L, Region *R) { const SCEV *Remainder = AF->delinearize(*SE, Subscripts, Sizes); int NSubs = Subscripts.size(); - // Normalize the last dimension: integrate the size of the "scalar dimension" - // and the remainder of the delinearization. - Subscripts[NSubs-1] = SE->getMulExpr(Subscripts[NSubs-1], - Sizes[NSubs-1]); - Subscripts[NSubs-1] = SE->getAddExpr(Subscripts[NSubs-1], Remainder); + // Normalize the last dimension: integrate the size of the "scalar + // dimension" and the remainder of the delinearization. + Subscripts[NSubs - 1] = + SE->getMulExpr(Subscripts[NSubs - 1], Sizes[NSubs - 1]); + Subscripts[NSubs - 1] = SE->getAddExpr(Subscripts[NSubs - 1], Remainder); for (int i = 0; i < NSubs; ++i) if (!isAffineExpr(R, Subscripts[i], *SE, BasePointer->getValue())) { @@ -195,8 +195,8 @@ IRAccess TempScopInfo::buildIRAccess(Instruction *Inst, Loop *L, Region *R) { IsAffine = isAffineExpr(R, AccessFunction, *SE, BasePointer->getValue()); } - return IRAccess(Type, BasePointer->getValue(), AccessFunction, Size, - IsAffine, Subscripts, Sizes); + return IRAccess(Type, BasePointer->getValue(), AccessFunction, Size, IsAffine, + Subscripts, Sizes); } void TempScopInfo::buildAccessFunctions(Region &R, BasicBlock &BB) { |