[PATCH] D13676: [Polly] Do not store scalar accesses in InstructionToAccess

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 20 09:22:52 PST 2015


Meinersbur updated this revision to Diff 43333.
Meinersbur marked 2 inline comments as done.
Meinersbur added a comment.

Rebase to r256124


http://reviews.llvm.org/D13676

Files:
  lib/Analysis/ScopInfo.cpp

Index: lib/Analysis/ScopInfo.cpp
===================================================================
--- lib/Analysis/ScopInfo.cpp
+++ lib/Analysis/ScopInfo.cpp
@@ -904,9 +904,12 @@
 void ScopStmt::addAccess(MemoryAccess *Access) {
   Instruction *AccessInst = Access->getAccessInstruction();
 
-  MemoryAccessList &MAL = InstructionToAccess[AccessInst];
-  MAL.emplace_front(Access);
-  MemAccs.push_back(MAL.front());
+  if (Access->isArrayKind()) {
+    MemoryAccessList &MAL = InstructionToAccess[AccessInst];
+    MAL.emplace_front(Access);
+  }
+
+  MemAccs.push_back(Access);
 }
 
 void ScopStmt::realignParams() {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13676.43333.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151220/198198ee/attachment.bin>


More information about the llvm-commits mailing list