[PATCH] D70076: [Polly][CodeGen]Fix getArrayAccessFor crashes as in bug 32534 with -polly-vectorizer=polly

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 12:01:10 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0aff3174dcc0: [CodeGen] Fix getArrayAccessFor crashes as in bug 32534 with -polly… (authored by Meinersbur).

Changed prior to commit:
  https://reviews.llvm.org/D70076?vs=228677&id=228936#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70076/new/

https://reviews.llvm.org/D70076

Files:
  polly/lib/CodeGen/BlockGenerators.cpp


Index: polly/lib/CodeGen/BlockGenerators.cpp
===================================================================
--- polly/lib/CodeGen/BlockGenerators.cpp
+++ polly/lib/CodeGen/BlockGenerators.cpp
@@ -1391,8 +1391,8 @@
 
   generateScalarVectorLoads(Stmt, VectorBlockMap);
 
-  for (Instruction &Inst : *BB)
-    copyInstruction(Stmt, &Inst, VectorBlockMap, ScalarBlockMap, NewAccesses);
+  for (Instruction *Inst : Stmt.getInstructions())
+    copyInstruction(Stmt, Inst, VectorBlockMap, ScalarBlockMap, NewAccesses);
 
   verifyNoScalarStores(Stmt);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70076.228936.patch
Type: text/x-patch
Size: 555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191112/c562391a/attachment.bin>


More information about the llvm-commits mailing list