[all-commits] [llvm/llvm-project] 2582d1: [ADT] Always use 32-bit size type for SmallVector ...
Jay Foad via All-commits
all-commits at lists.llvm.org
Wed Jun 26 13:49:00 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2582d11f1a8a5783828156d3ced354727f422885
https://github.com/llvm/llvm-project/commit/2582d11f1a8a5783828156d3ced354727f422885
Author: Jay Foad <jay.foad at amd.com>
Date: 2024-06-26 (Wed, 26 Jun 2024)
Changed paths:
M llvm/include/llvm/ADT/SmallVector.h
M llvm/lib/Support/SmallVector.cpp
Log Message:
-----------
[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 at npopov.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list