[llvm-branch-commits] [openmp] [OpenMP][offload] Inline target reductions (PR #196061)

Robert Imschweiler via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 6 07:59:17 PDT 2026


================
@@ -22,15 +22,19 @@ using namespace ompx;
 
 namespace {
 
-void gpu_regular_warp_reduce(void *reduce_data, ShuffleReductFnTy shflFct) {
+[[clang::always_inline]]
+static void gpu_regular_warp_reduce(void *reduce_data,
----------------
ro-i wrote:

> It is not a great idea to add always_line

How so? I didn't see any regression in my testing. Which situations would you expect to expose issues?

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


More information about the llvm-branch-commits mailing list