Skip to content

Commit a87c4ee

Browse files
authored
[MemProf] Drop unneccessary REQUIRES: x86-linux directives. (#142718)
These tests now use the YAML profile and should work across all platforms.
1 parent 0248725 commit a87c4ee

9 files changed

+0
-12
lines changed

llvm/test/Transforms/PGOProfile/memprof-call-site-at-alloc-site.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
; allocation call stack but does not call one of the memory allocation
33
; functions.
44

5-
; REQUIRES: x86_64-linux
65
; RUN: split-file %s %t
76
; RUN: llvm-profdata merge %t/memprof-call-site-at-alloc-site.yaml -o %t/memprof-call-site-at-alloc-site.memprofdata
87
; RUN: opt < %t/memprof-call-site-at-alloc-site.ll -passes='memprof-use<profile-filename=%t/memprof-call-site-at-alloc-site.memprofdata>' -memprof-print-match-info -S 2>&1 | FileCheck %s

llvm/test/Transforms/PGOProfile/memprof-dump-matched-alloc-site.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
;
2424
; Here we expect to match the allocation site to encompass 3 frames.
2525

26-
; REQUIRES: x86_64-linux
2726
; RUN: split-file %s %t
2827
; RUN: llvm-profdata merge %t/memprof-dump-matched-alloc-site.yaml -o %t/memprof-dump-matched-alloc-site.memprofdata
2928
; RUN: opt < %t/memprof-dump-matched-alloc-site.ll -passes='memprof-use<profile-filename=%t/memprof-dump-matched-alloc-site.memprofdata>' -memprof-print-match-info -S 2>&1 | FileCheck %s

llvm/test/Transforms/PGOProfile/memprof-dump-matched-call-sites.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
; Note that f3 is considered to be an allocation site, not a call site, because
3232
; it directly calls new after inlining.
3333

34-
; REQUIRES: x86_64-linux
3534
; RUN: split-file %s %t
3635
; RUN: llvm-profdata merge %t/memprof-dump-matched-call-site.yaml -o %t/memprof-dump-matched-call-site.memprofdata
3736
; RUN: opt < %t/memprof-dump-matched-call-site.ll -passes='memprof-use<profile-filename=%t/memprof-dump-matched-call-site.memprofdata>' -memprof-print-match-info -S 2>&1 | FileCheck %s

llvm/test/Transforms/PGOProfile/memprof-undrift.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; REQUIRES: x86_64-linux
21

32
; Make sure that we can undrift the MemProf profile and annotate the IR
43
; accordingly.

llvm/test/Transforms/PGOProfile/memprof_annotate_yaml.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; REQUIRES: x86_64-linux
21

32
; Make sure that we can ingest the MemProf profile in YAML and
43
; annotate a call to new as cold.

llvm/test/Transforms/PGOProfile/memprof_discard_threshold.ll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
;; Tests option to discard small noncold contexts.
22

3-
;; Avoid failures on big-endian systems that can't read the profile properly
4-
; REQUIRES: x86_64-linux
53

64
;; Generate the profile and the IR.
75
; RUN: split-file %s %t

llvm/test/Transforms/PGOProfile/memprof_match_hot_cold_new_calls.ll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
;; Tests optional matching of memprof profile on call to operator new
22
;; with manual hot/cold hint.
33

4-
;; Avoid failures on big-endian systems that can't read the profile properly
5-
; REQUIRES: x86_64-linux
64

75
;; Generate the profile and the IR.
86
; RUN: split-file %s %t

llvm/test/Transforms/PGOProfile/memprof_missing_leaf.ll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
;; matching and we are able to match the next call frame up the inlined
44
;; context.
55

6-
;; Avoid failures on big-endian systems that can't read the profile properly
7-
; REQUIRES: x86_64-linux
86

97
;; # To generate below LLVM IR for use in matching.
108
;; $ clang++ -gmlt -fdebug-info-for-profiling -S memprof_missing_leaf.cc \

llvm/test/tools/llvm-profdata/memprof-yaml-invalid.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; REQUIRES: x86_64-linux
21
; RUN: split-file %s %t
32
; RUN: not llvm-profdata merge %t/memprof-invalid.yaml -o %t/memprof-invalid.indexed
43

0 commit comments

Comments
 (0)