summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-30 18:20:52 +0000
committerChris Lattner <sabre@nondot.org>2005-11-30 18:20:52 +0000
commitc174048430786c9e1ab3f0d4dd3c2a18bc5fa3d1 (patch)
tree806c2773a0e09984d416625150d46ce3aa4dc55e
parent7ffe3affda5f8c2590243f80627b57fad895fb6f (diff)
downloadbcm5719-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.cpp4
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),
OpenPOWER on IntegriCloud