[Mlir-commits] [mlir] [MLIR][LLVM] Add ProfileSummary module flag support (PR #138070)

Christian Ulmann llvmlistbot at llvm.org
Fri May 2 00:03:25 PDT 2025


================
@@ -25,4 +35,16 @@ module {
 // CHECK-SAME: #llvm.cgprofile_entry<from = @from, to = @to, count = 222>,
 // CHECK-SAME: #llvm.cgprofile_entry<from = @from, count = 222>,
 // CHECK-SAME: #llvm.cgprofile_entry<from = @to, to = @from, count = 222>
-// CHECK-SAME: ]>]
+// CHECK-SAME: ]>,
+// CHECK-SAME: #llvm.mlir.module_flag<error, "ProfileSummary",
+// CHECK-SAME:    #llvm.profile_summary<format = InstrProf, total_count = 263646, max_count = 86427,
+// CHECK-SAME:      max_internal_count = 86427, max_function_count = 4691,
+// CHECK-SAME:      num_counts = 3712, num_functions = 796,
+// CHECK-SAME:      is_partial_profile = 0,
+// CHECK-SAME:      partial_profile_ratio = 0.000000e+00 : f64,
+// CHECK-SAME:      detailed_summary =
+// CHECK-SAME:        <cut_off = 10000, min_count = 86427, num_counts = 1>,
+// CHECK-SAME:        <cut_off = 100000, min_count = 86427, num_counts = 1>
+// CHECK-SAME: >>]
+
+llvm.module_flags []
----------------
Dinistro wrote:

Nit: This is line sneak in?

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


More information about the Mlir-commits mailing list