Skip to content

Commit

Permalink
[PGO] Fix instrprof-api.c on Windows (#77508)
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
qiongsiwu authored Jan 9, 2024
1 parent 7e956ca commit b6d1577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/test/profile/instrprof-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b6d1577

Please sign in to comment.