forked from OSchip/llvm-project
Finish moving TargetRegisterInfo::isVirtualRegister() and friends to llvm::Register as started by r367614. NFC
llvm-svn: 367754
This commit is contained in:
parent
4f8259bdbc
commit
6bf861298a
|
@ -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