diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-25 17:51:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-25 17:51:24 +0000 |
commit | 048ca55dc1b667b99060ce16a4891b36e950cf73 (patch) | |
tree | dd3f1a4a0dc18e1ff90cc7d1e4d6017b6b788990 | |
parent | 71b7f646de0d9e74198534d4a7b6059e6031ed59 (diff) | |
download | external_llvm-048ca55dc1b667b99060ce16a4891b36e950cf73.zip external_llvm-048ca55dc1b667b99060ce16a4891b36e950cf73.tar.gz external_llvm-048ca55dc1b667b99060ce16a4891b36e950cf73.tar.bz2 |
SDNodes may have at most one Flag result. Update this comment
to reflect that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58145 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 6fc4e11..eb0918e 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -351,8 +351,8 @@ unsigned ScheduleDAG::CountResults(SDNode *Node) { /// 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())) |