[llvm] r367697 - Fix ARC after r367633

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 10:52:17 PDT 2019


Author: dsanders
Date: Fri Aug  2 10:52:17 2019
New Revision: 367697

URL: http://llvm.org/viewvc/llvm-project?rev=367697&view=rev
Log:
Fix ARC after r367633

Modified:
    llvm/trunk/lib/Target/ARC/ARCOptAddrMode.cpp

Modified: llvm/trunk/lib/Target/ARC/ARCOptAddrMode.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/ARCOptAddrMode.cpp?rev=367697&r1=367696&r2=367697&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/ARCOptAddrMode.cpp (original)
+++ llvm/trunk/lib/Target/ARC/ARCOptAddrMode.cpp Fri Aug  2 10:52:17 2019
@@ -139,8 +139,7 @@ static bool dominatesAllUsesOf(const Mac
                                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::tryToCombi
   }
 
   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;
   }




More information about the llvm-commits mailing list