brintos

brintos / llvm-project-archived public Read only

0
0
Text · 565 B · a403835 Raw
22 lines · plain
1; RUN: opt -passes=pgo-icall-prom -profile-summary-hot-count=10 -S < %s -pass-remarks-output=- | FileCheck %s2 3; CHECK: inalloca mismatch4 5define void @a(ptr %0) !prof !0 {6  ret void7}8 9define void @b(ptr %v, ptr %p) !prof !1 {10; CHECK-LABEL: @b11; CHECK-NEXT: load12; CHECK-NEXT: call void {{.*}}(ptr inalloca(i64)13; CHECK-NEXT: ret void14  %a = load ptr, ptr %v15  call void %a(ptr inalloca(i64) %p), !prof !216  ret void17}18 19!0 = !{!"function_entry_count", i64 36}20!1 = !{!"function_entry_count", i64 1}21!2 = !{!"VP", i32 0, i64 18, i64 12157170054180749580, i64 18}22