When a function or a file is excluded using -fprofile-list= option,
don't emit coverage mapping as doing so confuses users since those
functions would always have zero count. This also reduces the binary
size considerably in cases where only a few functions or files are
being instrumented.
Details
Details
- Reviewers
davidxl vsk - Commits
- rG9fd9b5a9c9ec: Don't emit coverage mapping for excluded functions
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
clang/test/CodeGen/profile-filter.c | ||
---|---|---|
27 | This is somewhat difficult to interpret. Would you be open to specifying -dump-coverage-mapping (e.g. https://godbolt.org/z/5PvvEv), in a separate cc1 invocation if needed, and checking that instead? |
clang/test/CodeGen/profile-filter.c | ||
---|---|---|
27 | Thanks for the suggestion, this is definitely cleaner. |
This is somewhat difficult to interpret. Would you be open to specifying -dump-coverage-mapping (e.g. https://godbolt.org/z/5PvvEv), in a separate cc1 invocation if needed, and checking that instead?