aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2024-02-06 16:12:07 +0900
committerNAKAMURA Takumi <geek4civic@gmail.com>2024-02-06 16:13:02 +0900
commit47a12cca442cb52c33fc592183998f3b7bdd5094 (patch)
tree2d45107c598875ad7f22b4c6d114a80f4e91e824 /llvm/lib/ProfileData
parent7d055af14b7dd7e782b87fb883205eda65e8bd44 (diff)
downloadllvm-47a12cca442cb52c33fc592183998f3b7bdd5094.zip
llvm-47a12cca442cb52c33fc592183998f3b7bdd5094.tar.gz
llvm-47a12cca442cb52c33fc592183998f3b7bdd5094.tar.bz2
CoverageMapping.cpp: s/MaxBitmapID/MaxBitmapIdx/ in getMaxBitmapSize()
Diffstat (limited to 'llvm/lib/ProfileData')
-rw-r--r--llvm/lib/ProfileData/Coverage/CoverageMapping.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
index 39e43f8..f2b4b5c 100644
--- a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
+++ b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
@@ -491,20 +491,20 @@ static unsigned getMaxCounterID(const CounterMappingContext &Ctx,
/// Returns the bit count
static unsigned getMaxBitmapSize(const CounterMappingContext &Ctx,
const CoverageMappingRecord &Record) {
- unsigned MaxBitmapID = 0;
+ unsigned MaxBitmapIdx = 0;
unsigned NumConditions = 0;
// Scan max(BitmapIdx).
// Note that `<=` is used insted of `<`, because `BitmapIdx == 0` is valid
- // and `MaxBitmapID is `unsigned`. `BitmapIdx` is unique in the record.
+ // and `MaxBitmapIdx is `unsigned`. `BitmapIdx` is unique in the record.
for (const auto &Region : reverse(Record.MappingRegions)) {
if (Region.Kind == CounterMappingRegion::MCDCDecisionRegion &&
- MaxBitmapID <= Region.MCDCParams.BitmapIdx) {
- MaxBitmapID = Region.MCDCParams.BitmapIdx;
+ MaxBitmapIdx <= Region.MCDCParams.BitmapIdx) {
+ MaxBitmapIdx = Region.MCDCParams.BitmapIdx;
NumConditions = Region.MCDCParams.NumConditions;
}
}
unsigned SizeInBits = llvm::alignTo(uint64_t(1) << NumConditions, CHAR_BIT);
- return MaxBitmapID * CHAR_BIT + SizeInBits;
+ return MaxBitmapIdx * CHAR_BIT + SizeInBits;
}
namespace {