aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorJason Eckhardt <jeckhardt@nvidia.com>2024-02-05 23:23:13 -0600
committerGitHub <noreply@github.com>2024-02-06 13:23:13 +0800
commit1442b0e65370b603dcd4c7cfc300f19937c3bc79 (patch)
treecd50ae12a0520328b4635b6a08db7c1dcdcccd69 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent617602d4f23e89e56afd0f550bcf72deb83ed0cb (diff)
downloadllvm-1442b0e65370b603dcd4c7cfc300f19937c3bc79.zip
llvm-1442b0e65370b603dcd4c7cfc300f19937c3bc79.tar.gz
llvm-1442b0e65370b603dcd4c7cfc300f19937c3bc79.tar.bz2
[TableGen] Remove redundant buffer copies for ULEB128 decode calls. (#80199)
This patch removes a couple of redundant buffer copies in emitTable for setting up calls to decodeULEB128. Instead, provide the Table.data buffer directly to the calls-- where decodeULEB128 does its own buffer overflow checking. Factor out 7 explicit loops to emit ULEB128 bytes into emitULEB128. Also factor out 4 copies of 24-bit numtoskip emission into emitNumToSkip. The functionality is already covered by existing unit tests and by virtue of most of the in-tree back-ends exercising the decoder emitter.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions