diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-11-30 18:20:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-11-30 18:20:52 +0000 |
| commit | c174048430786c9e1ab3f0d4dd3c2a18bc5fa3d1 (patch) | |
| tree | 806c2773a0e09984d416625150d46ce3aa4dc55e | |
| parent | 7ffe3affda5f8c2590243f80627b57fad895fb6f (diff) | |
| download | bcm5719-llvm-c174048430786c9e1ab3f0d4dd3c2a18bc5fa3d1.tar.gz bcm5719-llvm-c174048430786c9e1ab3f0d4dd3c2a18bc5fa3d1.zip | |
CALLSEQ_START/END nodes don't get memoized, do not add them in when
replaceAllUses'ing.
llvm-svn: 24539
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 8aa2bc660a8..039cd57584f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -387,6 +387,10 @@ void SelectionDAG::RemoveNodeFromCSEMaps(SDNode *N) { /// SDNode *SelectionDAG::AddNonLeafNodeToCSEMaps(SDNode *N) { assert(N->getNumOperands() && "This is a leaf node!"); + if (N->getOpcode() == ISD::CALLSEQ_START || + N->getOpcode() == ISD::CALLSEQ_END) + return 0; + if (N->getOpcode() == ISD::LOAD) { SDNode *&L = Loads[std::make_pair(N->getOperand(1), std::make_pair(N->getOperand(0), |

