[PATCH] D13676: [Polly] Do not store scalar accesses in InstructionToAccess
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 14 08:57:11 PST 2015
Meinersbur retitled this revision from "[Polly] Store leading and trailing memory accesses separately" to "[Polly] Do not store scalar accesses in InstructionToAccess".
Meinersbur updated the summary for this revision.
Meinersbur updated this revision to Diff 42727.
Meinersbur added a comment.
Remove explicit LeadingReads and TrailingWrites vectors; they are implicit by iterating over all MemoryAccesses with a filter
http://reviews.llvm.org/D13676
Files:
lib/Analysis/ScopInfo.cpp
Index: lib/Analysis/ScopInfo.cpp
===================================================================
--- lib/Analysis/ScopInfo.cpp
+++ lib/Analysis/ScopInfo.cpp
@@ -899,11 +899,14 @@
void ScopStmt::addAccess(MemoryAccess *Access) {
Instruction *AccessInst = Access->getAccessInstruction();
- MemoryAccessList *&MAL = InstructionToAccess[AccessInst];
- if (!MAL)
- MAL = new MemoryAccessList();
- MAL->emplace_front(Access);
- MemAccs.push_back(MAL->front());
+ if (Access->isArrayKind()) {
+ MemoryAccessList *&MAL = InstructionToAccess[AccessInst];
+ if (!MAL)
+ MAL = new MemoryAccessList();
+ MAL->emplace_front(Access);
+ }
+
+ MemAccs.push_back(Access);
}
void ScopStmt::realignParams() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13676.42727.patch
Type: text/x-patch
Size: 728 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151214/4cab25ac/attachment.bin>
More information about the llvm-commits
mailing list