[Openmp-commits] [openmp] [OpenMP] Use simple VLA implementation to replace uses of actual VLA (PR #71412)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 8 13:30:19 PST 2023

https://github.com/jdoerfert commented:

Can we have a very simple, non-growable, SmallVector-like API?
So provide a compile time bound for the size that could live on the stack, and if it's too large at runtime do a alloc/free.
The cost for this is basically nothing, but you avoid potential allocation cost for 95% of all cases (size <= 16 or 32).


More information about the Openmp-commits mailing list