[llvm] [OpenMPOpt] Set entry count on merged parallel wrapper (PR #221654)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 12:47:50 PDT 2026


================
@@ -0,0 +1,146 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs --version 6
+; RUN: opt -S -passes=openmp-opt-cgscc -openmp-opt-enable-merging < %s | FileCheck %s
+
+; Merged wrapper should get the max outlined function_entry_count (435).
+
+%struct.ident_t = type { i32, i32, i32, i32, ptr }
+
+ at 0 = private unnamed_addr constant [23 x i8] c";unknown;unknown;0;0;;\00", align 1
+ at 1 = private unnamed_addr constant %struct.ident_t { i32 0, i32 2, i32 0, i32 22, ptr @0 }, align 8
+
+declare void @use(i32 noundef) local_unnamed_addr
+
+define dso_local void @merge_profile(i32 noundef %a, i32 noundef %cond) local_unnamed_addr !prof !47 {
----------------
mtrofin wrote:

might as well keep the metadata counts compact - i.e. !prof !16 (or whatever it should be)

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


More information about the llvm-commits mailing list