mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
inline the global 'getInstrOperandRegClass' function into its callers
now that TargetOperandInfo does the heavy lifting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -512,7 +512,7 @@ bool StackSlotColoring::PropagateBackward(MachineBasicBlock::iterator MII,
|
||||
TID.getOpcode() == TargetInstrInfo::SUBREG_TO_REG)
|
||||
return false;
|
||||
|
||||
const TargetRegisterClass *RC = getInstrOperandRegClass(TRI, TID, i);
|
||||
const TargetRegisterClass *RC = TID.OpInfo[i].getRegClass(TRI);
|
||||
if (RC && !RC->contains(NewReg))
|
||||
return false;
|
||||
|
||||
@@ -576,7 +576,7 @@ bool StackSlotColoring::PropagateForward(MachineBasicBlock::iterator MII,
|
||||
TID.getOpcode() == TargetInstrInfo::EXTRACT_SUBREG)
|
||||
return false;
|
||||
|
||||
const TargetRegisterClass *RC = getInstrOperandRegClass(TRI, TID, i);
|
||||
const TargetRegisterClass *RC = TID.OpInfo[i].getRegClass(TRI);
|
||||
if (RC && !RC->contains(NewReg))
|
||||
return false;
|
||||
FoundUse = true;
|
||||
|
||||
Reference in New Issue
Block a user