[PATCH] D39504: [OpenMP] Extend "Avoid VLAs for reduction" optimization to VLAs as base

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 1 13:16:20 PDT 2017


Hahnfeld created this revision.

We can generate constant sized arrays whenever the array section has constant
length, even if the base expression itself is a VLA.


https://reviews.llvm.org/D39504

Files:
  lib/Sema/SemaOpenMP.cpp
  test/OpenMP/for_reduction_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39504.121169.patch
Type: text/x-patch
Size: 12259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171101/2fe984cc/attachment.bin>


More information about the cfe-commits mailing list