[Openmp-commits] [PATCH] D158220: make small memory allocations in loop collapse code on the stack instead of the heap

Vadim Paretsky via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 17 14:28:49 PDT 2023


vadikp-intel created this revision.
vadikp-intel added reviewers: natgla, jkrishnavs, mstorsjo.
vadikp-intel added a project: OpenMP.
Herald added a project: All.
vadikp-intel requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, jplehr, sstefan1.

A few places in the loop collapse support code take small dynamic allocations that introduce a noticeable performance overhead when made on the heap. This change moves small allocations (up to 32 bytes) to the stack instead of the heap.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158220

Files:
  openmp/runtime/src/kmp_collapse.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158220.551271.patch
Type: text/x-patch
Size: 7713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230817/330de0b8/attachment.bin>


More information about the Openmp-commits mailing list