[all-commits] [llvm/llvm-project] 80277b: Resurrect FalseCnt in SwitchStmt that was pruned i...
NAKAMURA Takumi via All-commits
all-commits at lists.llvm.org
Wed Dec 18 04:32:28 PST 2024
Branch: refs/heads/users/chapuni/cov/switchfalse
Home: https://github.com/llvm/llvm-project
Commit: 80277bb2e9cd69627126cc3b62b819fd889c8648
https://github.com/llvm/llvm-project/commit/80277bb2e9cd69627126cc3b62b819fd889c8648
Author: NAKAMURA Takumi <geek4civic at gmail.com>
Date: 2024-12-18 (Wed, 18 Dec 2024)
Changed paths:
M clang/lib/CodeGen/CoverageMappingGen.cpp
M clang/test/CoverageMapping/switch.cpp
M clang/test/CoverageMapping/switchmacro.c
Log Message:
-----------
Resurrect FalseCnt in SwitchStmt that was pruned in #112694
I missed that FalseCnt for each Case was used to calculate percentage
in the SwitchStmt. At the moment I resurrect them.
In `!HasDefaultCase`, the pair of Counters shall be `[CaseCountSum, FalseCnt]`.
(Reversal of before #112694)
I think it can be considered as the False count on SwitchStmt.
FalseCnt shall be folded (same as current impl) in the coming
SingleByteCoverage changes, since percentage would not make sense.
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