[compiler-rt] b6d1577 - [PGO] Fix `instrprof-api.c` on Windows (#77508)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 11:53:44 PST 2024
Author: Qiongsi Wu
Date: 2024-01-09T14:53:40-05:00
New Revision: b6d1577071017f1ba3f12bfe30c1746ffaf5d98d
URL: https://github.com/llvm/llvm-project/commit/b6d1577071017f1ba3f12bfe30c1746ffaf5d98d
DIFF: https://github.com/llvm/llvm-project/commit/b6d1577071017f1ba3f12bfe30c1746ffaf5d98d.diff
LOG: [PGO] Fix `instrprof-api.c` on Windows (#77508)
https://github.com/llvm/llvm-project/pull/76471 introduced a new test
but the check lines have over-restrictive patterns for a string variable
name that cause test failures on Windows (e.g.
https://lab.llvm.org/buildbot/#/builders/127/builds/60637/steps/4/logs/stdio).
This PR fixes the test.
Added:
Modified:
compiler-rt/test/profile/instrprof-api.c
Removed:
################################################################################
diff --git a/compiler-rt/test/profile/instrprof-api.c b/compiler-rt/test/profile/instrprof-api.c
index 1381300c1ad18a..b6f75426b2a717 100644
--- a/compiler-rt/test/profile/instrprof-api.c
+++ b/compiler-rt/test/profile/instrprof-api.c
@@ -29,8 +29,8 @@ int foo() {
int main() {
int z = foo() + 3;
__llvm_profile_set_filename("rawprof.profraw");
- // PROFGEN: call void @__llvm_profile_set_filename(ptr noundef @.str)
- // PROFUSE-NOT: call void @__llvm_profile_set_filename(ptr noundef @.str)
+ // PROFGEN: call void @__llvm_profile_set_filename(ptr noundef @{{.*}})
+ // PROFUSE-NOT: call void @__llvm_profile_set_filename(ptr noundef @{{.*}})
if (__llvm_profile_dump())
return 2;
// PROFGEN: %call1 = call {{(signext )*}}i32 @__llvm_profile_dump()
More information about the llvm-commits
mailing list