Always break upon finding a vreg operand (in Release as well as +Asserts). Remove...
authorLang Hames <lhames@gmail.com>
Wed, 25 Jan 2012 21:53:23 +0000 (21:53 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 25 Jan 2012 21:53:23 +0000 (21:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148984 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index f1f566771af7d3e485c977cae0aa6ac1a077b250..0e621ebc68cfb6a9c1e0701ad5f46284fc95ab38 100644 (file)
@@ -819,13 +819,8 @@ unsigned LiveIntervals::getReMatImplicitUse(const LiveInterval &li,
     if (TargetRegisterInfo::isPhysicalRegister(Reg) &&
         !allocatableRegs_[Reg])
       continue;
-    // FIXME: For now, only remat MI with at most one register operand.
-    assert(!RegOp &&
-           "Can't rematerialize instruction with multiple register operand!");
     RegOp = MO.getReg();
-#ifdef NDEBUG
-    break;
-#endif
+    break; // Found vreg operand - leave the loop.
   }
   return RegOp;
 }