[llvm] [profcheck] Add heuristical profile metadata for lowering table-based cttz. (PR #161898)

Jin Huang via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 3 14:52:47 PDT 2025


================
@@ -498,3 +515,8 @@ entry:
   %conv = zext i8 %0 to i32
   ret i32 %conv
 }
+
+!0 = !{!"function_entry_count", i64 1000}
+; CHECK: [[PROF_0]] = !{!"function_entry_count", i64 1000}
+; CHECK: [[PROF_1]] = !{!"branch_weights", i32 1, i32 100}
+; CHECK: [[PROF_2]] = !{!"branch_weights", i32 3, i32 5}
----------------
jinhuang1102 wrote:

Don't need to check the PROF_2.

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


More information about the llvm-commits mailing list