summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-06-24 15:56:59 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-06-24 15:56:59 +0000
commit53ccab7d1cbab12661708e3bc7331f4921417b4b (patch)
treeed6528a36696c37cb597f92f8dee46bdfac8ba66 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parenta6d75e2cf7dfa20a2566e55f1c8c600678364c02 (diff)
downloadbcm5719-llvm-53ccab7d1cbab12661708e3bc7331f4921417b4b.tar.gz
bcm5719-llvm-53ccab7d1cbab12661708e3bc7331f4921417b4b.zip
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. llvm-svn: 106751
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 7d23cd0c9dd..6d072a4145f 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1284,6 +1284,7 @@ bool LiveIntervals::anyKillInMBBAfterIdx(const LiveInterval &li,
continue;
SlotIndex KillIdx = VNI->kills[j];
+ assert(getInstructionFromIndex(KillIdx) && "Dangling kill");
if (KillIdx > Idx && KillIdx <= End)
return true;
}
OpenPOWER on IntegriCloud