[llvm-commits] [llvm] r152449 - /llvm/trunk/lib/CodeGen/LiveVariables.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Mar 9 15:41:44 PST 2012


Author: stoklund
Date: Fri Mar  9 17:41:44 2012
New Revision: 152449

URL: http://llvm.org/viewvc/llvm-project?rev=152449&view=rev
Log:
Assert on SSA errors in LiveVariables.

All uses of a virtual register must be dominated by its def.

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

Modified: llvm/trunk/lib/CodeGen/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveVariables.cpp?rev=152449&r1=152448&r2=152449&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveVariables.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveVariables.cpp Fri Mar  9 17:41:44 2012
@@ -109,6 +109,7 @@
   // Mark the variable known alive in this bb
   VRInfo.AliveBlocks.set(BBNum);
 
+  assert(MBB != &MF->front() && "Can't find reaching def for virtreg");
   WorkList.insert(WorkList.end(), MBB->pred_rbegin(), MBB->pred_rend());
 }
 





More information about the llvm-commits mailing list