summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>2024-05-03 10:26:54 +0200
committerGitHub <noreply@github.com>2024-05-03 10:26:54 +0200
commited299b3efd669c02fa37773d1ae49fca3556f729 (patch)
tree71d76c1821ffdc5b9c8b2982230400cbf334e6ea /llvm/lib/Bitcode/Reader
parent8480c93e36b33c237540e20c97cda8fb3d196f1f (diff)
[GlobalISel] Optimize ULEB128 usage (#90565)
- Remove some cases where ULEB128 isn't needed - Add a fastDecodeULEB128 tailored for GlobalISel which does unchecked decoding optimized for the common case, which is 1 byte values. We rarely have >1 byte Inst IDs, OpIdx, etc. and those are the most common ULEB users by far. This specific LEB128 decode function generates almost 2x less instructions than the generic one.
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions