22 lines · plain
1; RUN: opt < %s -passes=instrprof -S -do-counter-promotion=1 | FileCheck %s2; CHECK: store3 4@__profn_foo = private constant [3 x i8] c"foo"5 6define void @foo() {7entry:8 br label %while.body9 10 while.body: ; preds = %entry, %while.body11 call void @llvm.instrprof.increment(ptr @__profn_foo, i64 14813359968, i32 1, i32 0)12 call void (...) @bar() #213 br label %while.body14}15 16declare void @bar(...)17 18declare void @llvm.instrprof.increment(ptr, i64, i32, i32) #019 20attributes #0 = { nounwind }21 22