[all-commits] [llvm/llvm-project] f5cd18: [Coverage] Introduce `getBranchCounterPair()`. NFC...
NAKAMURA Takumi via All-commits
all-commits at lists.llvm.org
Wed Jan 8 23:47:22 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f5cd181ffbb7cb61d582fe130d46580d5969d47a
https://github.com/llvm/llvm-project/commit/f5cd181ffbb7cb61d582fe130d46580d5969d47a
Author: NAKAMURA Takumi <geek4civic at gmail.com>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
M clang/lib/CodeGen/CoverageMappingGen.cpp
Log Message:
-----------
[Coverage] Introduce `getBranchCounterPair()`. NFC. (#112702)
This aggregates the generation of branch counter pair as `ExecCnt` and
`SkipCnt`, to aggregate `CounterExpr::subtract`. At the moment:
- This change preserves the behavior of
`llvm::EnableSingleByteCoverage`. Almost of SingleByteCoverage will be
cleaned up by coming commits.
- `IsCounterEqual(Out, Par)` is introduced instead of
`Counter::operator==`. Tweaks would be required for the comparison for
additional counters.
https://discourse.llvm.org/t/rfc-integrating-singlebytecoverage-with-branch-coverage/82492
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