aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionPass.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2024-06-26 21:48:38 +0100
committerGitHub <noreply@github.com>2024-06-26 21:48:38 +0100
commit2582d11f1a8a5783828156d3ced354727f422885 (patch)
treee42e2dc31e129666fcb094bbf6776c2630b3562f /llvm/lib/CodeGen/MachineFunctionPass.cpp
parenteeb931641ae735faa25283ddb2465318302e864f (diff)
downloadllvm-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