[clang] [compiler-rt] [llvm] [InstrProf] Single byte counters in coverage (PR #75425)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 19:55:02 PST 2024
================
@@ -234,8 +246,20 @@ struct MapRegionCounters : public RecursiveASTVisitor<MapRegionCounters> {
if (Hash.getHashVersion() == PGO_HASH_V1)
return Base::TraverseIfStmt(If);
+ // When single byte coverage mode is enabled, add a counter to then and
+ // else.
+ for (Stmt *CS : If->children()) {
+ if (!CS || !llvm::EnableSingleByteCoverage)
----------------
gulfemsavrun wrote:
Done!
https://github.com/llvm/llvm-project/pull/75425
More information about the llvm-commits
mailing list