diff options
author | Jason Eckhardt <jeckhardt@nvidia.com> | 2024-02-05 23:23:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 13:23:13 +0800 |
commit | 1442b0e65370b603dcd4c7cfc300f19937c3bc79 (patch) | |
tree | cd50ae12a0520328b4635b6a08db7c1dcdcccd69 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 617602d4f23e89e56afd0f550bcf72deb83ed0cb (diff) | |
download | llvm-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