noruntime.ll 581 B

12345678910111213141516
  1. ;; Check that we don't emit the runtime hooks if the user provided them.
  2. ; RUN: opt < %s -instrprof -S | FileCheck %s
  3. ; CHECK-NOT: define {{.*}} @__llvm_profile_runtime_user()
  4. ; CHECK-NOT: load i32, i32* @__llvm_profile_runtime
  5. @__llvm_profile_runtime = global i32 0, align 4
  6. @__llvm_profile_name_foo = hidden constant [3 x i8] c"foo"
  7. define void @foo() {
  8. call void @llvm.instrprof.increment(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @__llvm_profile_name_foo, i32 0, i32 0), i64 0, i32 1, i32 0)
  9. ret void
  10. }
  11. declare void @llvm.instrprof.increment(i8*, i64, i32, i32)