summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-11 19:00:03 +0000
committerDan Gohman <gohman@apple.com>2008-02-11 19:00:03 +0000
commit991056808bf7cdd6608aec8919c57969323f4b24 (patch)
treeab956ed30b4cd6383a18f4231095fc007e4be581 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
parent54d3b5a1f5ff89cf533f61eb80f06aa725a28d76 (diff)
downloadbcm5719-llvm-991056808bf7cdd6608aec8919c57969323f4b24.tar.gz
bcm5719-llvm-991056808bf7cdd6608aec8919c57969323f4b24.zip
From Chris' review: minor corrections in comments.
llvm-svn: 46963
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index a35c9ef7a23..5f09a4f6b14 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud