]> granicus.if.org Git - clang/commit
[OpenMP] Extend "Avoid VLAs for reduction" optimization to VLAs as base
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 2 Nov 2017 13:30:42 +0000 (13:30 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 2 Nov 2017 13:30:42 +0000 (13:30 +0000)
commit8148ea17f5b960f0cb6457b9e4906da119f3b1f8
treed43b74949d4185b4a3b489fac8cd5a3e3e508c6b
parenteb2251ff651ab5e512fcf197b45c31496ad674bd
[OpenMP] Extend "Avoid VLAs for reduction" optimization to VLAs as base

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

Differential Revision: https://reviews.llvm.org/D39504

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317207 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOpenMP.cpp
test/OpenMP/for_reduction_codegen.cpp