diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-20 18:38:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-20 18:38:32 +0000 |
commit | 222ceabbee96eb84dcd0aa84be9b892da996d74c (patch) | |
tree | 764fdc3413a5a77a2ee295178867fd635b08f173 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 69d621387cc84ed91619f2fd81eb1ffa030f0ecc (diff) | |
download | bcm5719-llvm-222ceabbee96eb84dcd0aa84be9b892da996d74c.tar.gz bcm5719-llvm-222ceabbee96eb84dcd0aa84be9b892da996d74c.zip |
If the target doesn't support f32 natively, insert the FP_EXTEND in target-indep
code, so that the LowerReturn code doesn't have to handle it.
llvm-svn: 25482
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 2cb6be59a21..8d5c2d030d5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3377,7 +3377,8 @@ 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() || + if (/*Node->getNodeDepth() <= Found->getNodeDepth() ||*/ + Node->getNumOperands() == 0 || !Visited.insert(Node).second) return; // If we found an CALLSEQ_START, we already know this node occurs later @@ -3404,7 +3405,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 |