[polly] r294734 - [ScopInfo] Use original base address when building ScopArrayInfo [NFC]
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 02:09:47 PST 2017
Author: grosser
Date: Fri Feb 10 04:09:46 2017
New Revision: 294734
URL: http://llvm.org/viewvc/llvm-project?rev=294734&view=rev
Log:
[ScopInfo] Use original base address when building ScopArrayInfo [NFC]
This change clarfies that we want to indeed use the original base address
when creating the ScopArrayInfo that corresponds to a given memory access.
This change prepares for https://reviews.llvm.org/D28518.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=294734&r1=294733&r2=294734&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Feb 10 04:09:46 2017
@@ -1164,8 +1164,8 @@ void ScopStmt::buildAccessRelations() {
else
Ty = MemoryKind::Array;
- auto *SAI = S.getOrCreateScopArrayInfo(Access->getBaseAddr(), ElementType,
- Access->Sizes, Ty);
+ auto *SAI = S.getOrCreateScopArrayInfo(Access->getOriginalBaseAddr(),
+ ElementType, Access->Sizes, Ty);
Access->buildAccessRelation(SAI);
}
}
More information about the llvm-commits
mailing list