Skip to content

Commit 291ac25

Browse files
authored
[PGO] Remove calls to __llvm_orderfile_dump() in instrprof-api.c test (#79150)
#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.
1 parent 5f47687 commit 291ac25

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

compiler-rt/test/profile/instrprof-api.c

-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// UNSUPPORTED: target={{.*windows.*}}
2-
// __llvm_orderfile_dump() is not supported on Windows.
3-
41
// Testing profile generate.
52
// RUN: %clang_profgen %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
63
// RUN: %clang_pgogen %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
@@ -38,12 +35,8 @@ int main() {
3835
return 2;
3936
// PROFGEN: %{{.*}} = call {{(signext )*}}i32 @__llvm_profile_dump()
4037
// PROFUSE-NOT: %{{.*}} = call {{(signext )*}}i32 @__llvm_profile_dump()
41-
__llvm_orderfile_dump();
42-
// PROFGEN: %{{.*}} = call {{(signext )*}}i32 @__llvm_orderfile_dump()
43-
// PROFUSE-NOT: %{{.*}} = call {{(signext )*}}i32 @__llvm_orderfile_dump()
4438
return z + bar() - 11;
4539
}
4640

4741
// PROFUSE-NOT: declare void @__llvm_profile_set_filename(ptr noundef)
4842
// PROFUSE-NOT: declare signext i32 @__llvm_profile_dump()
49-
// PROFUSE-NOT: declare signext i32 @__llvm_orderfile_dump()

0 commit comments

Comments
 (0)