mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-06 03:38:24 +00:00
6be977abce
Differential Revision: http://reviews.llvm.org/D18126 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266637 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
609 B
LLVM
18 lines
609 B
LLVM
;; Check that we don't emit the runtime hooks if the user provided them.
|
|
|
|
; RUN: opt < %s -instrprof -S | FileCheck %s
|
|
; RUN: opt < %s -passes=instrprof -S | FileCheck %s
|
|
; CHECK-NOT: define {{.*}} @__llvm_profile_runtime_user()
|
|
; CHECK-NOT: load i32, i32* @__llvm_profile_runtime
|
|
|
|
@__llvm_profile_runtime = global i32 0, align 4
|
|
|
|
@__profn_foo = hidden constant [3 x i8] c"foo"
|
|
|
|
define void @foo() {
|
|
call void @llvm.instrprof.increment(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @__profn_foo, i32 0, i32 0), i64 0, i32 1, i32 0)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.instrprof.increment(i8*, i64, i32, i32)
|