[llvm] [ctx_prof] Fix the pre-thinlink "use" case (PR #102511)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 13:24:23 PDT 2024
================
@@ -7,19 +7,22 @@
declare void @bar()
+;.
+; CHECK: @__profn_foo = private constant [3 x i8] c"foo"
+;.
define void @foo(i32 %a, ptr %fct) {
; CHECK-LABEL: define void @foo(
; CHECK-SAME: i32 [[A:%.*]], ptr [[FCT:%.*]]) local_unnamed_addr {
+; CHECK-NEXT: call void @llvm.instrprof.increment(ptr @__profn_foo, i64 728453322856651412, i32 2, i32 0)
----------------
mtrofin wrote:
it's the changes in PGOInstrumentation that do that.
https://github.com/llvm/llvm-project/pull/102511
More information about the llvm-commits
mailing list