mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Convert more GenRegisterInfo tables from unsigned to uint16_t to reduce static data size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -235,7 +235,7 @@ HexagonFrameLowering::spillCalleeSavedRegisters(
|
||||
//
|
||||
// Check if we can use a double-word store.
|
||||
//
|
||||
const unsigned* SuperReg = TRI->getSuperRegisters(Reg);
|
||||
const uint16_t* SuperReg = TRI->getSuperRegisters(Reg);
|
||||
|
||||
// Assume that there is exactly one superreg.
|
||||
assert(SuperReg[0] && !SuperReg[1] && "Expected exactly one superreg");
|
||||
@@ -243,7 +243,7 @@ HexagonFrameLowering::spillCalleeSavedRegisters(
|
||||
const TargetRegisterClass* SuperRegClass = 0;
|
||||
|
||||
if (ContiguousRegs && (i < CSI.size()-1)) {
|
||||
const unsigned* SuperRegNext = TRI->getSuperRegisters(CSI[i+1].getReg());
|
||||
const uint16_t* SuperRegNext = TRI->getSuperRegisters(CSI[i+1].getReg());
|
||||
assert(SuperRegNext[0] && !SuperRegNext[1] &&
|
||||
"Expected exactly one superreg");
|
||||
SuperRegClass = TRI->getMinimalPhysRegClass(SuperReg[0]);
|
||||
@@ -295,14 +295,14 @@ bool HexagonFrameLowering::restoreCalleeSavedRegisters(
|
||||
//
|
||||
// Check if we can use a double-word load.
|
||||
//
|
||||
const unsigned* SuperReg = TRI->getSuperRegisters(Reg);
|
||||
const uint16_t* SuperReg = TRI->getSuperRegisters(Reg);
|
||||
const TargetRegisterClass* SuperRegClass = 0;
|
||||
|
||||
// Assume that there is exactly one superreg.
|
||||
assert(SuperReg[0] && !SuperReg[1] && "Expected exactly one superreg");
|
||||
bool CanUseDblLoad = false;
|
||||
if (ContiguousRegs && (i < CSI.size()-1)) {
|
||||
const unsigned* SuperRegNext = TRI->getSuperRegisters(CSI[i+1].getReg());
|
||||
const uint16_t* SuperRegNext = TRI->getSuperRegisters(CSI[i+1].getReg());
|
||||
assert(SuperRegNext[0] && !SuperRegNext[1] &&
|
||||
"Expected exactly one superreg");
|
||||
SuperRegClass = TRI->getMinimalPhysRegClass(SuperReg[0]);
|
||||
|
Reference in New Issue
Block a user