[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 30 10:21:04 PST 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.218 -> 1.219
---
Log message:

CALLSEQ_START/END nodes don't get memoized, do not add them in when 
replaceAllUses'ing.



---
Diffs of the changes:  (+4 -0)

 SelectionDAG.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.218 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.219
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.218	Tue Nov 29 20:49:21 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Wed Nov 30 12:20:52 2005
@@ -387,6 +387,10 @@
 ///
 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),






More information about the llvm-commits mailing list