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

Jin Huang via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 14:18:58 PDT 2025


================
@@ -43,3 +44,7 @@ entry:
   %conv = zext i8 %1 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}
----------------
jinhuang1102 wrote:

Fixed.

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


More information about the llvm-commits mailing list