mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 11:57:07 +00:00
Fix indentation, add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1cd0f4637b
commit
56500edc7a
@ -253,13 +253,15 @@ void SelectionDAGLegalize::LegalizeDAG() {
|
||||
/// FindCallEndFromCallStart - Given a chained node that is part of a call
|
||||
/// sequence, find the CALLSEQ_END node that terminates the call sequence.
|
||||
static SDNode *FindCallEndFromCallStart(SDNode *Node, int depth = 0) {
|
||||
// Nested CALLSEQ_START/END constructs aren't yet legal,
|
||||
// but we can DTRT and handle them correctly here.
|
||||
if (Node->getOpcode() == ISD::CALLSEQ_START)
|
||||
depth++;
|
||||
else if (Node->getOpcode() == ISD::CALLSEQ_END) {
|
||||
depth--;
|
||||
if (depth == 0)
|
||||
return Node;
|
||||
}
|
||||
depth--;
|
||||
if (depth == 0)
|
||||
return Node;
|
||||
}
|
||||
if (Node->use_empty())
|
||||
return 0; // No CallSeqEnd
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user