[flang-commits] [flang] [flang][OpenMP] Allocate array reduction variables on the heap (PR #87773)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Apr 8 09:31:40 PDT 2024


https://github.com/kiranchandramohan approved this pull request.

LG.

Could you add a TODO to do a performance comparison with the alloca version. Most allocas will be hoisted. Only those allocas which are variable length would need the stacksave and restore. stacksave and restore can be inserted when the reduction declaration is processed.

https://github.com/llvm/llvm-project/pull/87773


More information about the flang-commits mailing list