aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorQiongsi Wu <274595+qiongsiwu@users.noreply.github.com>2024-01-23 10:26:59 -0500
committerGitHub <noreply@github.com>2024-01-23 10:26:59 -0500
commit291ac25298f797f99d880833c20756d82d779c02 (patch)
treeaf0bf1a3d1aff24ff6dcc309a64893182228ce2c /compiler-rt
parent5f47687c82e6a9246f9fd852185fbba43385abe3 (diff)
downloadllvm-291ac25298f797f99d880833c20756d82d779c02.zip
llvm-291ac25298f797f99d880833c20756d82d779c02.tar.gz
llvm-291ac25298f797f99d880833c20756d82d779c02.tar.bz2
[PGO] Remove calls to `__llvm_orderfile_dump()` in `instrprof-api.c` test (#79150)
https://github.com/llvm/llvm-project/pull/78285 added a test which calls `__llvm_orderfile_dump()`, a functionality that is not supported on many platforms. This PR removes the call to `__llvm_orderfile_dump()` to avoid it failing on unsupported platforms, and turn on the test for Windows, so we test the rest of the API that are supported.
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/profile/instrprof-api.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler-rt/test/profile/instrprof-api.c b/compiler-rt/test/profile/instrprof-api.c
index fedec2d..07c5b2f 100644
--- a/compiler-rt/test/profile/instrprof-api.c
+++ b/compiler-rt/test/profile/instrprof-api.c
@@ -1,6 +1,3 @@
-// UNSUPPORTED: target={{.*windows.*}}
-// __llvm_orderfile_dump() is not supported on Windows.
-
// Testing profile generate.
// RUN: %clang_profgen %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
// RUN: %clang_pgogen %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
@@ -38,12 +35,8 @@ int main() {
return 2;
// PROFGEN: %{{.*}} = call {{(signext )*}}i32 @__llvm_profile_dump()
// PROFUSE-NOT: %{{.*}} = call {{(signext )*}}i32 @__llvm_profile_dump()
- __llvm_orderfile_dump();
- // PROFGEN: %{{.*}} = call {{(signext )*}}i32 @__llvm_orderfile_dump()
- // PROFUSE-NOT: %{{.*}} = call {{(signext )*}}i32 @__llvm_orderfile_dump()
return z + bar() - 11;
}
// PROFUSE-NOT: declare void @__llvm_profile_set_filename(ptr noundef)
// PROFUSE-NOT: declare signext i32 @__llvm_profile_dump()
-// PROFUSE-NOT: declare signext i32 @__llvm_orderfile_dump()