projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1beea
)
Assert on SSA errors in LiveVariables.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Fri, 9 Mar 2012 23:41:44 +0000
(23:41 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Fri, 9 Mar 2012 23:41:44 +0000
(23:41 +0000)
All uses of a virtual register must be dominated by its def.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152449
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveVariables.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveVariables.cpp
b/lib/CodeGen/LiveVariables.cpp
index 9c3d25536475914a9e1342bf485d22a3adc6c8b0..48e1e4cdad1dc1844ae401a524f119e5c9b83dc7 100644
(file)
--- a/
lib/CodeGen/LiveVariables.cpp
+++ b/
lib/CodeGen/LiveVariables.cpp
@@
-109,6
+109,7
@@
void LiveVariables::MarkVirtRegAliveInBlock(VarInfo& VRInfo,
// 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());
}