[all-commits] [llvm/llvm-project] 5e4605: [Coverage] Make additional counters available for ...
NAKAMURA Takumi via All-commits
all-commits at lists.llvm.org
Thu Oct 17 08:33:30 PDT 2024
Branch: refs/heads/users/chapuni/cov/single/nextcount
Home: https://github.com/llvm/llvm-project
Commit: 5e460594c8a2550c38c759b2e6f1c5dc4152f820
https://github.com/llvm/llvm-project/commit/5e460594c8a2550c38c759b2e6f1c5dc4152f820
Author: NAKAMURA Takumi <geek4civic at gmail.com>
Date: 2024-10-18 (Fri, 18 Oct 2024)
Changed paths:
M clang/lib/CodeGen/CodeGenFunction.h
M clang/lib/CodeGen/CodeGenPGO.cpp
M clang/lib/CodeGen/CodeGenPGO.h
M clang/lib/CodeGen/CoverageMappingGen.cpp
M llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
Log Message:
-----------
[Coverage] Make additional counters available for BranchRegion. NFC.
`getBranchCounterPair()` allocates an additional Counter to SkipPath
in `SingleByteCoverage`.
`IsCounterEqual()` calculates the comparison with rewinding counter
replacements.
`NumRegionCounters` is updated to take additional counters in account.
`incrementProfileCounter()` has a few additiona arguments.
- `UseSkipPath=true`, to specify setting counters for SkipPath. It
assumes `UseSkipPath=false` is used together.
- `UseBoth` may be specified for marking another path. It introduces
the same effect as issueing `markStmtAsUsed(!SkipPath, S)`.
`llvm-cov` discovers counters in `FalseCount` to allocate
`MaxCounterID` for empty profile data.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list