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

Evan Cheng evan.cheng at apple.com
Thu Mar 2 22:42:45 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.264 -> 1.265
---
Log message:

SDOperand::isOperand should not be a forwarding. It must check *this against N's operands.

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

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


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.264 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.265
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.264	Fri Mar  3 00:24:54 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Fri Mar  3 00:42:32 2006
@@ -2534,6 +2534,13 @@
 }
 
 // isOperand - Return true if this node is an operand of N.
+bool SDOperand::isOperand(SDNode *N) const {
+  for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
+    if (*this == N->getOperand(i))
+      return true;
+  return false;
+}
+
 bool SDNode::isOperand(SDNode *N) const {
   for (unsigned i = 0, e = N->NumOperands; i != e; ++i)
     if (this == N->OperandList[i].Val)






More information about the llvm-commits mailing list