diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-20 18:40:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-20 18:40:10 +0000 |
commit | a68d204843fc8b9606e7760fcddd20b99e8e340d (patch) | |
tree | d2016ae46d433b9807a2830061d70a4363f7ffa5 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 4eebb60f843e0aa67b62f3b8643101bc0e39531d (diff) |
remove some unintentionally committed code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 8d5c2d030d..2cb6be59a2 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3377,8 +3377,7 @@ bool SelectionDAGLegalize::ExpandShift(unsigned Opc, SDOperand Op,SDOperand Amt, /// Found. static void FindLatestCallSeqStart(SDNode *Node, SDNode *&Found, std::set<SDNode*> &Visited) { - if (/*Node->getNodeDepth() <= Found->getNodeDepth() ||*/ - Node->getNumOperands() == 0 || + if (Node->getNodeDepth() <= Found->getNodeDepth() || !Visited.insert(Node).second) return; // If we found an CALLSEQ_START, we already know this node occurs later @@ -3405,7 +3404,7 @@ static void FindLatestCallSeqStart(SDNode *Node, SDNode *&Found, /// than Found. static void FindEarliestCallSeqEnd(SDNode *Node, SDNode *&Found, std::set<SDNode*> &Visited) { - if (/*(Found && Node->getNodeDepth() >= Found->getNodeDepth()) ||*/ + if ((Found && Node->getNodeDepth() >= Found->getNodeDepth()) || !Visited.insert(Node).second) return; // If we found an CALLSEQ_END, we already know this node occurs earlier |