; RUN: opt -passes=pgo-icall-prom -profile-summary-hot-count=10 -S < %s -pass-remarks-output=- | FileCheck %s
; CHECK: byval mismatch
define void @a(ptr %0) !prof !0 {
ret void
}
define void @b(ptr %v, ptr %p) !prof !1 {
; CHECK-LABEL: @b
; CHECK-NEXT: load
; CHECK-NEXT: call void {{.*}}(ptr byval(i64)
; CHECK-NEXT: ret void
;
%a = load ptr, ptr %v
call void %a(ptr byval(i64) %p), !prof !2
ret void
}
!0 = !{!"function_entry_count", i64 36}
!1 = !{!"function_entry_count", i64 1}
!2 = !{!"VP", i32 0, i64 18, i64 12157170054180749580, i64 18}