Eliminate MachineOperand::isPhysicalRegister. The X86 backend should use

MRegisterInfo::isPhysicalRegister(MO.getReg()) and the Sparc backend should
use isMachineRegister()

llvm-svn: 11279
This commit is contained in:
Chris Lattner 2004-02-10 20:42:11 +00:00
parent 9d0a4e63b1
commit 04f36062ea

View File

@ -229,10 +229,6 @@ public:
return (opType == MO_VirtualRegister || opType == MO_MachineRegister)
&& regNum >= MRegisterInfo::FirstVirtualRegister;
}
bool isPhysicalRegister() const {
return (opType == MO_VirtualRegister || opType == MO_MachineRegister)
&& (unsigned)regNum < MRegisterInfo::FirstVirtualRegister;
}
bool isRegister() const {
return opType == MO_VirtualRegister || opType == MO_MachineRegister;
}