Fix ARC after r367633

llvm-svn: 367697
This commit is contained in:
Daniel Sanders 2019-08-02 17:52:17 +00:00
parent 4dcf8800e2
commit c94c91f55c
1 changed files with 2 additions and 4 deletions

View File

@ -139,8 +139,7 @@ static bool dominatesAllUsesOf(const MachineInstr *MI, unsigned VReg,
MachineDominatorTree *MDT,
MachineRegisterInfo *MRI) {
assert(TargetRegisterInfo::isVirtualRegister(VReg) &&
"Expected virtual register!");
assert(Register::isVirtualRegister(VReg) && "Expected virtual register!");
for (auto it = MRI->use_nodbg_begin(VReg), end = MRI->use_nodbg_end();
it != end; ++it) {
@ -206,8 +205,7 @@ MachineInstr *ARCOptAddrMode::tryToCombine(MachineInstr &Ldst) {
}
unsigned B = Base.getReg();
if (TargetRegisterInfo::isStackSlot(B) ||
!TargetRegisterInfo::isVirtualRegister(B)) {
if (Register::isStackSlot(B) || !Register::isVirtualRegister(B)) {
LLVM_DEBUG(dbgs() << "[ABAW] Base is not VReg\n");
return nullptr;
}