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:
4d75d80
)
Missing logic for nested CALLSEQ_START/END.
author
Stuart Hastings
<stuart@apple.com>
Tue, 21 Dec 2010 17:07:24 +0000
(17:07 +0000)
committer
Stuart Hastings
<stuart@apple.com>
Tue, 21 Dec 2010 17:07:24 +0000
(17:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122342
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 661a7ad6d877ce1da8bcd588503d2baceadb8c9a..a60b871937271e26842cdbfca0359d1512ff50de 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@
-255,8
+255,11
@@
void SelectionDAGLegalize::LegalizeDAG() {
static SDNode *FindCallEndFromCallStart(SDNode *Node, int depth = 0) {
if (Node->getOpcode() == ISD::CALLSEQ_START)
depth++;
- if ((Node->getOpcode() == ISD::CALLSEQ_END) && (depth == 1))
- return Node;
+ else if (Node->getOpcode() == ISD::CALLSEQ_END) {
+ depth--;
+ if (depth == 0)
+ return Node;
+ }
if (Node->use_empty())
return 0; // No CallSeqEnd