17 lines · plain
1;; Check that we don't emit the runtime hooks if the user provided them.2 3; RUN: opt < %s -passes=instrprof -S | FileCheck %s4; CHECK-NOT: define {{.*}} @__llvm_profile_runtime_user()5; CHECK-NOT: load i32, ptr @__llvm_profile_runtime6 7@__llvm_profile_runtime = global i32 0, align 48 9@__profn_foo = private constant [3 x i8] c"foo"10 11define void @foo() {12 call void @llvm.instrprof.increment(ptr @__profn_foo, i64 0, i32 1, i32 0)13 ret void14}15 16declare void @llvm.instrprof.increment(ptr, i64, i32, i32)17