diff options
author | Dan Gohman <gohman@apple.com> | 2008-02-11 19:00:03 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-02-11 19:00:03 +0000 |
commit | 027ee7e3ca21e3cf16051caac91e9befa327f193 (patch) | |
tree | b7c410e465e666eb3705d2b1ce79284a4cdd6458 /lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | |
parent | bbbbb9c3dd4160990f856854d16a3beaead1f354 (diff) |
From Chris' review: minor corrections in comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index a35c9ef7a2..5f09a4f6b1 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -267,7 +267,7 @@ void ScheduleDAG::CalculateHeights() { /// CountResults - The results of target nodes have register or immediate /// operands first, then an optional chain, and optional flag operands (which do -/// not go into the machine instrs.) +/// not go into the resulting MachineInstr). unsigned ScheduleDAG::CountResults(SDNode *Node) { unsigned N = Node->getNumValues(); while (N && Node->getValueType(N - 1) == MVT::Flag) @@ -279,7 +279,8 @@ unsigned ScheduleDAG::CountResults(SDNode *Node) { /// CountOperands - The inputs to target nodes have any actual inputs first, /// followed by optional memory operands chain operand, then flag operands. -/// Compute the number of actual operands that will go into the machine istr. +/// Compute the number of actual operands that will go into the resulting +/// MachineInstr. unsigned ScheduleDAG::CountOperands(SDNode *Node) { unsigned N = Node->getNumOperands(); while (N && Node->getOperand(N - 1).getValueType() == MVT::Flag) |