diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-10-05 21:44:10 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-10-05 21:44:10 +0000 |
commit | 829cb818065673a50101435f3c25e50ca82a02bf (patch) | |
tree | c7ec1ef759d78eb499ec84824366a0f032343d5b | |
parent | e17daebb30195ad5e95c1dc0ade89aa1eca9fd51 (diff) |
Remove some bad code from Legalize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23640 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 17ea3edf20..0dd6aa565b 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2619,11 +2619,8 @@ static void FindLatestCallSeqStart(SDNode *Node, SDNode *&Found) { // Otherwise, scan the operands of Node to see if any of them is a call. assert(Node->getNumOperands() != 0 && "All leaves should have depth equal to the entry node!"); - for (unsigned i = 0, e = Node->getNumOperands()-1; i != e; ++i) { + for (unsigned i = 0, e = Node->getNumOperands()-1; i != e; ++i) FindLatestCallSeqStart(Node->getOperand(i).Val, Found); - if (Found->getOpcode() == ISD::CALLSEQ_START) - return; - } // Tail recurse for the last iteration. FindLatestCallSeqStart(Node->getOperand(Node->getNumOperands()-1).Val, |