mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Finish moving TargetRegisterInfo::isVirtualRegister() and friends to llvm::Register as started by r367614. NFC
llvm-svn: 367754
This commit is contained in:
parent
51f61c0d34
commit
95c93d36e6
@ -874,7 +874,7 @@ unsigned AVRExpandPseudo::scavengeGPR8(MachineInstr &MI) {
|
||||
// Exclude all the registers being used by the instruction.
|
||||
for (MachineOperand &MO : MI.operands()) {
|
||||
if (MO.isReg() && MO.getReg() != 0 && !MO.isDef() &&
|
||||
!TargetRegisterInfo::isVirtualRegister(MO.getReg()))
|
||||
!Register::isVirtualRegister(MO.getReg()))
|
||||
Candidates.reset(MO.getReg());
|
||||
}
|
||||
|
||||
|
@ -251,7 +251,7 @@ bool AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(const SDValue &Op,
|
||||
RegisterSDNode *RegNode =
|
||||
cast<RegisterSDNode>(CopyFromRegOp->getOperand(1));
|
||||
Reg = RegNode->getReg();
|
||||
CanHandleRegImmOpt &= (TargetRegisterInfo::isVirtualRegister(Reg) ||
|
||||
CanHandleRegImmOpt &= (Register::isVirtualRegister(Reg) ||
|
||||
AVR::PTRDISPREGSRegClass.contains(Reg));
|
||||
} else {
|
||||
CanHandleRegImmOpt = false;
|
||||
|
Loading…
Reference in New Issue
Block a user