diff options
author | Qiongsi Wu <274595+qiongsiwu@users.noreply.github.com> | 2024-01-09 14:53:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 14:53:40 -0500 |
commit | b6d1577071017f1ba3f12bfe30c1746ffaf5d98d (patch) | |
tree | 2029890b63dd3d4f29b51793dcc19585f44d39e5 | |
parent | 7e956ca88a90feadd2982ba52e0b008a9fa2249e (diff) | |
download | llvm-b6d1577071017f1ba3f12bfe30c1746ffaf5d98d.zip llvm-b6d1577071017f1ba3f12bfe30c1746ffaf5d98d.tar.gz llvm-b6d1577071017f1ba3f12bfe30c1746ffaf5d98d.tar.bz2 |
[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.
-rw-r--r-- | compiler-rt/test/profile/instrprof-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/profile/instrprof-api.c b/compiler-rt/test/profile/instrprof-api.c index 1381300c..b6f7542 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() |