Skip to content

Commit c0c11e7

Browse files
authored
[NFC][HWASAN] Cleanup opt opt test (#87687)
Main change is replacing DEFAULT with HOT99. I'll remove DEFAULT related functionality in the followup patches.
1 parent 9a0ae08 commit c0c11e7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

llvm/test/Instrumentation/HWAddressSanitizer/pgo-opt-out.ll

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-selective-instrumentation=1 \
2-
; RUN: | FileCheck %s --check-prefix=DEFAULT
2+
; RUN: -hwasan-percentile-cutoff-hot=700000 | FileCheck %s --check-prefix=HOT70
33
; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-selective-instrumentation=1 \
4-
; RUN: -hwasan-percentile-cutoff-hot=700000 | FileCheck %s --check-prefix=HOT_RATE
4+
; RUN: | FileCheck %s --check-prefix=HOT99
55
; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-selective-instrumentation=1 \
6-
; RUN: -hwasan-random-skip-rate=0.0 | FileCheck %s --check-prefix=RANDOM_RATE_0
6+
; RUN: -hwasan-random-skip-rate=0.0 | FileCheck %s --check-prefix=RANDOM0
77
; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-selective-instrumentation=1 \
8-
; RUN: -hwasan-random-skip-rate=1.0 | FileCheck %s --check-prefix=RANDOM_RATE_1
8+
; RUN: -hwasan-random-skip-rate=1.0 | FileCheck %s --check-prefix=RANDOM1
99

10-
; DEFAULT: @sanitized
11-
; DEFAULT-NEXT: %x = alloca i8, i64 4
10+
; HOT70: @sanitized
11+
; HOT70-NEXT: @__hwasan_tls
1212

13-
; HOT_RATE: @sanitized
14-
; HOT_RATE-NEXT: @__hwasan_tls
13+
; HOT99: @sanitized
14+
; HOT99-NEXT: %x = alloca i8, i64 4
1515

16-
; RANDOM_RATE_0: @sanitized
17-
; RANDOM_RATE_0-NEXT: @__hwasan_tls
16+
; RANDOM0: @sanitized
17+
; RANDOM0-NEXT: @__hwasan_tls
1818

19-
; RANDOM_RATE_1: @sanitized
20-
; RANDOM_RATE_1-NEXT: %x = alloca i8, i64 4
19+
; RANDOM1: @sanitized
20+
; RANDOM1-NEXT: %x = alloca i8, i64 4
2121

2222
declare void @use(ptr)
2323

0 commit comments

Comments
 (0)