diff options
author | Jay Foad <jay.foad@amd.com> | 2024-06-26 21:48:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 21:48:38 +0100 |
commit | 2582d11f1a8a5783828156d3ced354727f422885 (patch) | |
tree | e42e2dc31e129666fcb094bbf6776c2630b3562f /llvm/lib/CodeGen/MachineFunctionPass.cpp | |
parent | eeb931641ae735faa25283ddb2465318302e864f (diff) | |
download | llvm-2582d11f1a8a5783828156d3ced354727f422885.zip llvm-2582d11f1a8a5783828156d3ced354727f422885.tar.gz llvm-2582d11f1a8a5783828156d3ced354727f422885.tar.bz2 |
[ADT] Always use 32-bit size type for SmallVector with 16-bit elements (#95536)
`SmallVector` has a special case to allow vector of char to exceed 4 GB
in
size on 64-bit hosts. Apply this special case only for 8-bit element
types, instead of all element types < 32 bits.
This makes `SmallVector<MCPhysReg>` more compact because `MCPhysReg` is
`uint16_t`.
---------
Co-authored-by: Nikita Popov <github@npopov.com>
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions