aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorEnna1 <xumingjie.enna1@bytedance.com>2024-02-06 14:25:55 +0800
committerGitHub <noreply@github.com>2024-02-06 14:25:55 +0800
commit397e91f0f387bf2db0cc320a9078a60d2334545e (patch)
treef5d65807dc1596118915b487046f4bdbf0d59b02 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parentfa70b5d1309f15244cb5528d545d42865cbf8e18 (diff)
downloadllvm-397e91f0f387bf2db0cc320a9078a60d2334545e.zip
llvm-397e91f0f387bf2db0cc320a9078a60d2334545e.tar.gz
llvm-397e91f0f387bf2db0cc320a9078a60d2334545e.tar.bz2
[MemProf][NFC] Compute SHADOW_ENTRY_SIZE from MEM_GRANULARITY and SHA… (#80589)
…DOW_SCALE As MEM_GRANULARITY represents the size of memory block mapped to a single shadow entry, and SHADOW_SCALE represents the scale of shadow mapping, so the single shadow entry size can be computed as (MEM_GRANULARITY >> SHADOW_SCALE). This patch replaces the hardcoded SHADOW_ENTRY_SIZE with (MEM_GRANULARITY >> SHADOW_SCALE).
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions