Add comments.

llvm-svn: 128730
This commit is contained in:
Evan Cheng 2011-04-01 19:57:01 +00:00
parent 8d68ebd42a
commit 8b1bca1998
1 changed files with 4 additions and 2 deletions

View File

@ -4929,9 +4929,11 @@ void SelectionDAGBuilder::LowerCallTo(ImmutableCallSite CS, SDValue Callee,
&ReturnValues[0], ReturnValues.size()));
}
// As a special case, a null chain means that a tail call has been emitted and
// the DAG root is already updated.
// Assign order to nodes here. If the call does not produce a result, it won't
// be mapped to a SDNode and visit() will not assign it an order number.
if (!Result.second.getNode()) {
// As a special case, a null chain means that a tail call has been emitted and
// the DAG root is already updated.
HasTailCall = true;
++SDNodeOrder;
AssignOrderingToNode(DAG.getRoot().getNode());