mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
Use uint16_t instead of unsigned to store registers in reg classes. Reduces static data size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -85,7 +85,7 @@ void RegisterClassInfo::compute(const TargetRegisterClass *RC) const {
|
||||
|
||||
// FIXME: Once targets reserve registers instead of removing them from the
|
||||
// allocation order, we can simply use begin/end here.
|
||||
ArrayRef<unsigned> RawOrder = RC->getRawAllocationOrder(*MF);
|
||||
ArrayRef<uint16_t> RawOrder = RC->getRawAllocationOrder(*MF);
|
||||
for (unsigned i = 0; i != RawOrder.size(); ++i) {
|
||||
unsigned PhysReg = RawOrder[i];
|
||||
// Remove reserved registers from the allocation order.
|
||||
|
Reference in New Issue
Block a user