[llvm-commits] [llvm] r148984 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Lang Hames lhames at gmail.com
Wed Jan 25 13:53:24 PST 2012


Author: lhames
Date: Wed Jan 25 15:53:23 2012
New Revision: 148984

URL: http://llvm.org/viewvc/llvm-project?rev=148984&view=rev
Log:
Always break upon finding a vreg operand (in Release as well as +Asserts). Remove assertion which can no longer trigger.

Modified:
    llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=148984&r1=148983&r2=148984&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Wed Jan 25 15:53:23 2012
@@ -819,13 +819,8 @@
     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;
 }





More information about the llvm-commits mailing list