[llvm] [InstrProf][X86] Mark non-directly accessed globals as large (PR #74778)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 19:28:43 PST 2023


================
@@ -73,5 +76,15 @@ attributes #0 = { nounwind }
 ; ALIGN: @__profc_bar = private global {{.*}} section "__llvm_prf_cnts",{{.*}} align 8
 ; ALIGN: @__profvp_bar = private global {{.*}} section "__llvm_prf_vals",{{.*}}  align 8
 ; ALIGN: @__profd_bar = private global {{.*}} section "__llvm_prf_data",{{.*}} align 8
-; ALIGN: @__llvm_prf_vnodes = private global {{.*}} section "__llvm_prf_vnds", align 8
-; ALIGN: @__llvm_prf_nm = private constant {{.*}} section "__llvm_prf_names", align 1
+; ALIGN: @__llvm_prf_vnodes = private global {{.*}} section "__llvm_prf_vnds",{{.*}} align 8
+; ALIGN: @__llvm_prf_nm = private constant {{.*}} section "__llvm_prf_names",{{.*}} align 1
+
+; X8664-CODEMODEL-NOT: @__profc_foo = {{.*}}, code_model "large"
----------------
MaskRay wrote:

```
; X8664-CODEMODEL:     @__profc_foo
; X8664-CODEMODEL-NOT:   code_model
```

ditto below to ensure that the check line finds the variables.

https://github.com/llvm/llvm-project/pull/74778


More information about the llvm-commits mailing list