Assign node orders to target intrinsics which do not produce results. rdar://11096639

llvm-svn: 153269
This commit is contained in:
Evan Cheng 2012-03-22 19:29:09 +00:00
parent fd4177d9fd
commit 79f03e915d
1 changed files with 6 additions and 0 deletions

View File

@ -3586,6 +3586,12 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I,
}
setValue(&I, Result);
} else {
// Assign order to result here. If the intrinsic does not produce a result,
// it won't be mapped to a SDNode and visit() will not assign it an order
// number.
++SDNodeOrder;
AssignOrderingToNode(Result.getNode());
}
}