Skip to content

Commit 7bb363b

Browse files
authored
[CodeGen] Use MCRegister for ignoreCSRForAllocationOrder. (#123685)
1 parent ce32625 commit 7bb363b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/include/llvm/CodeGen/TargetSubtargetInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class TargetSubtargetInfo : public MCSubtargetInfo {
324324
/// written in the tablegen descriptions, false if it should allocate
325325
/// the specified physical register later if is it callee-saved.
326326
virtual bool ignoreCSRForAllocationOrder(const MachineFunction &MF,
327-
unsigned PhysReg) const {
327+
MCRegister PhysReg) const {
328328
return false;
329329
}
330330

llvm/lib/Target/ARM/ARMSubtarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ unsigned ARMSubtarget::getGPRAllocationOrder(const MachineFunction &MF) const {
478478
}
479479

480480
bool ARMSubtarget::ignoreCSRForAllocationOrder(const MachineFunction &MF,
481-
unsigned PhysReg) const {
481+
MCRegister PhysReg) const {
482482
// To minimize code size in Thumb2, we prefer the usage of low regs (lower
483483
// cost per use) so we can use narrow encoding. By default, caller-saved
484484
// registers (e.g. lr, r12) are always allocated first, regardless of

llvm/lib/Target/ARM/ARMSubtarget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ class ARMSubtarget : public ARMGenSubtargetInfo {
523523
}
524524

525525
bool ignoreCSRForAllocationOrder(const MachineFunction &MF,
526-
unsigned PhysReg) const override;
526+
MCRegister PhysReg) const override;
527527
unsigned getGPRAllocationOrder(const MachineFunction &MF) const;
528528
};
529529

0 commit comments

Comments
 (0)