Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler-rt] Fix instrprof-darwin-exports test #67487

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

dtellenbach
Copy link
Member

The test currently misses to filter __mh_execute_header in one case which can cause it to fail.

The test currently misses to filter __mh_execute_header in one case
which can cause it to fail.
@llvmbot llvmbot added compiler-rt PGO Profile Guided Optimizations labels Sep 26, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Sep 26, 2023

@llvm/pr-subscribers-pgo

Changes

The test currently misses to filter __mh_execute_header in one case which can cause it to fail.


Full diff: https://github.com/llvm/llvm-project/pull/67487.diff

1 Files Affected:

  • (modified) compiler-rt/test/profile/instrprof-darwin-exports.c (+1-1)
diff --git a/compiler-rt/test/profile/instrprof-darwin-exports.c b/compiler-rt/test/profile/instrprof-darwin-exports.c
index 5e5f69b91cb80dd..079d5d28ed24d9b 100644
--- a/compiler-rt/test/profile/instrprof-darwin-exports.c
+++ b/compiler-rt/test/profile/instrprof-darwin-exports.c
@@ -22,7 +22,7 @@
 //
 // RUN: %clang_pgogen -Werror -o %t.default %s
 // RUN: nm -jUg %t.default | grep -v __mh_execute_header > %t.default.exports
-// RUN: nm -jUg %t > %t.clang.exports
+// RUN: nm -jUg %t | grep -v __mh_execute_header > %t.clang.exports
 // RUN: diff %t.default.exports %t.clang.exports
 
 // 4) Ditto (3), but for GCOV.

@dtellenbach dtellenbach merged commit 134ae13 into llvm:main Sep 27, 2023
4 checks passed
@dtellenbach dtellenbach deleted the instrprof-darwin-export branch September 27, 2023 03:46
Guzhu-AMD pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Sep 28, 2023
Local branch amd-gfx 456d45a Merged main:3bb89b6bfbb5 into amd-gfx:40a7b75c817a
Remote branch main 134ae13 [compiler-rt] Fix instrprof-darwin-exports test (llvm#67487)
dtellenbach added a commit to swiftlang/llvm-project that referenced this pull request Sep 28, 2023
legrosbuffle pushed a commit to legrosbuffle/llvm-project that referenced this pull request Sep 29, 2023
dtellenbach added a commit to swiftlang/llvm-project that referenced this pull request Oct 3, 2023
[compiler-rt] Fix instrprof-darwin-exports test (llvm#67487)

(cherry picked from commit 134ae13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-rt PGO Profile Guided Optimizations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants