1 ; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S | FileCheck %s --check-prefix=FULL
2 ; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-percentile-cutoff-hot=990000 | FileCheck %s --check-prefix=SELSAN
5 ; FULL-NEXT: %x = alloca i8, i64 4
6 ; FULL: @sanitized_no_ps
7 ; FULL-NEXT: @__hwasan_tls
9 ; SELSAN: @not_sanitized
10 ; SELSAN-NEXT: %x = alloca i8, i64 4
11 ; SELSAN: @sanitized_no_ps
12 ; SELSAN-NEXT: @__hwasan_tls
14 declare void @use(ptr)
16 define void @not_sanitized() {
18 call void @use(ptr %x)
22 define void @sanitized_no_ps() sanitize_hwaddress {
24 call void @use(ptr %x)