[PATCH] D33688: [Polly] Heap allocation for new arrays

Andreas Simbuerger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 08:58:23 PDT 2017


simbuerg added a comment.

So far it looks good. I would add tests that take care of error cases: negative sizes, overflow in the size calculation.



================
Comment at: lib/CodeGen/IslNodeBuilder.cpp:1420
+
+    if (PollyAllocateArraysHeap) {
+      LLVMContext &Ctx = NewArrayType->getContext();
----------------
You already wrote it in your diff-summary: I would make this a property of the SAI and fill this information from the JSON side.


https://reviews.llvm.org/D33688





More information about the llvm-commits mailing list