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

Evan Cheng evan.cheng at apple.com
Thu Nov 2 23:31:46 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.367 -> 1.368
---
Log message:

Fix comments.

---
Diffs of the changes:  (+8 -3)

 SelectionDAG.cpp |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.367 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.368
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.367	Thu Nov  2 21:05:24 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Fri Nov  3 01:31:32 2006
@@ -2534,7 +2534,8 @@
 }
 
 
-// isOnlyUse - Return true if this node is the only use of N.
+/// isOnlyUse - Return true if this node is the only use of N.
+///
 bool SDNode::isOnlyUse(SDNode *N) const {
   bool Seen = false;
   for (SDNode::use_iterator I = N->use_begin(), E = N->use_end(); I != E; ++I) {
@@ -2548,7 +2549,8 @@
   return Seen;
 }
 
-// isOperand - Return true if this node is an operand of N.
+/// 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))
@@ -2578,7 +2580,10 @@
   }
 }
 
-// isPredecessor - Return true if this node is a predecessor of N.
+/// isPredecessor - Return true if this node is a predecessor of N. This node
+/// is either an operand of N or it can be reached by recursively traversing
+/// up the operands.
+/// NOTE: this is an expensive method. Use it carefully.
 bool SDNode::isPredecessor(SDNode *N) const {
   std::set<SDNode *> Visited;
   bool found = false;






More information about the llvm-commits mailing list