[llvm-commits] [llvm] r58145 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

Dan Gohman gohman at apple.com
Sat Oct 25 10:51:24 PDT 2008


Author: djg
Date: Sat Oct 25 12:51:24 2008
New Revision: 58145

URL: http://llvm.org/viewvc/llvm-project?rev=58145&view=rev
Log:
SDNodes may have at most one Flag result. Update this comment
to reflect that.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp?rev=58145&r1=58144&r2=58145&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Sat Oct 25 12:51:24 2008
@@ -351,8 +351,8 @@
 
 /// CountOperands - The inputs to target nodes have any actual inputs first,
 /// followed by special operands that describe memory references, then an
-/// optional chain operand, then flag operands.  Compute the number of
-/// actual operands that will go into the resulting MachineInstr.
+/// optional chain operand, then an optional flag operand.  Compute the number
+/// of actual operands that will go into the resulting MachineInstr.
 unsigned ScheduleDAG::CountOperands(SDNode *Node) {
   unsigned N = ComputeMemOperandsEnd(Node);
   while (N && isa<MemOperandSDNode>(Node->getOperand(N - 1).getNode()))





More information about the llvm-commits mailing list