1 ;; Check that only one data variable is created when an instrprof.increment is
2 ;; inlined into more than one function.
3 ; RUN: opt %s -passes='cgscc(inline),instrprof' -S | FileCheck %s
5 target triple = "x86_64-unknown-linux-gnu"
7 ; CHECK: @__profd_foobar = private global
8 ; CHECK-NOT @__profd_foobar
10 declare void @llvm.instrprof.increment(ptr %0, i64 %1, i32 %2, i32 %3)
11 @__profn_foobar = private constant [6 x i8] c"foobar"
13 define internal void @foobar() {
14 call void @llvm.instrprof.increment(ptr @__profn_foobar, i64 123456, i32 32, i32 0)