mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use MCPhysReg for RegisterClassInfo allocation orders.
This saves a bit of memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -29,10 +29,10 @@ class RegisterClassInfo {
|
||||
unsigned Tag;
|
||||
unsigned NumRegs;
|
||||
bool ProperSubClass;
|
||||
OwningArrayPtr<unsigned> Order;
|
||||
OwningArrayPtr<MCPhysReg> Order;
|
||||
|
||||
RCInfo() : Tag(0), NumRegs(0), ProperSubClass(false) {}
|
||||
operator ArrayRef<unsigned>() const {
|
||||
operator ArrayRef<MCPhysReg>() const {
|
||||
return makeArrayRef(Order.get(), NumRegs);
|
||||
}
|
||||
};
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
/// getOrder - Returns the preferred allocation order for RC. The order
|
||||
/// contains no reserved registers, and registers that alias callee saved
|
||||
/// registers come last.
|
||||
ArrayRef<unsigned> getOrder(const TargetRegisterClass *RC) const {
|
||||
ArrayRef<MCPhysReg> getOrder(const TargetRegisterClass *RC) const {
|
||||
return get(RC);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user