Open justincady opened 4 days ago
Could you please try 18 or main
branch? https://godbolt.org should be helpful.
It looks like a bug. This flag was added at https://reviews.llvm.org/D94820. @petrhosek, do you take a look on this?
@EugeneZelenko I couldn't figure out how to get the coverage report generated in Compiler Explorer, but if it's helpful this Godbolt demonstrates the __llvm_prf_names
section issue with 18.1.0.
It appears
-fprofile-list
cannot be used to ignore coverage for non-emitted code. Here's an example (LLVM 17.0.6):Running it as above:
Notice two details:
foo()
.foo
in__llvm_prf_names
.But when we remove the call to
foo()
frommain()
:foo()
.foo
is present in__llvm_prf_names
.This seems like a bug with
-fprofile-list
. Or, if not via that flag, how can uncalled code be explicitly ignored such that it is not instrumented for coverage reports and associated data is not emitted to the various coverage sections?cc @ZequanWu