[llvm-commits] [llvm] r106751 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jun 24 08:57:00 PDT 2010
Author: stoklund
Date: Thu Jun 24 10:56:59 2010
New Revision: 106751
URL: http://llvm.org/viewvc/llvm-project?rev=106751&view=rev
Log:
Verify that VNI kills are pointing to existing instructions.
In this case it is essential that the kill is real because the spiller will
decide to omit a spill if it thinks there is a later kill.
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=106751&r1=106750&r2=106751&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Thu Jun 24 10:56:59 2010
@@ -1284,6 +1284,7 @@
continue;
SlotIndex KillIdx = VNI->kills[j];
+ assert(getInstructionFromIndex(KillIdx) && "Dangling kill");
if (KillIdx > Idx && KillIdx <= End)
return true;
}
More information about the llvm-commits
mailing list