36 lines · plain
1;; Check that globals are not marked large under x86-64 small code model.2; RUN: opt %s -mtriple=x86_64-unknown-linux -passes=instrprof -S | FileCheck %s3 4@__profn_foo = private constant [3 x i8] c"foo"5 6define i32 @foo(ptr) {7 call void @llvm.instrprof.increment(ptr @__profn_foo, i64 12884901887, i32 1, i32 0)8 %2 = ptrtoint ptr %0 to i649 call void @llvm.instrprof.value.profile(ptr @__profn_foo, i64 12884901887, i64 %2, i32 0, i32 0)10 %3 = tail call i32 %0()11 ret i32 %312}13 14; Function Attrs: nounwind15declare void @llvm.instrprof.increment(ptr, i64, i32, i32) #016 17; Function Attrs: nounwind18declare void @llvm.instrprof.value.profile(ptr, i64, i64, i32, i32) #019 20attributes #0 = { nounwind }21 22!llvm.module.flags = !{!0}23 24!0 = !{i32 1, !"Code Model", i32 1}25 26; CHECK: @__profc_foo =27; CHECK-NOT: code_model "large"28; CHECK: @__profvp_foo =29; CHECK-NOT: code_model "large"30; CHECK: @__profd_foo =31; CHECK-NOT: code_model "large"32; CHECK: @__llvm_prf_vnodes =33; CHECK-NOT: code_model "large"34; CHECK: @__llvm_prf_nm =35; CHECK-NOT: code_model "large"36