diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-03-22 19:29:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-03-22 19:29:09 +0000 |
commit | 79f03e915dcf9715fd3ff47808b991dc52b08f51 (patch) | |
tree | 04301747549aa4124b671b7c30851ec2c1535c8e /llvm/lib/CodeGen | |
parent | fd4177d9fd75a93e242993fde888e2b894f99a78 (diff) | |
download | bcm5719-llvm-79f03e915dcf9715fd3ff47808b991dc52b08f51.tar.gz bcm5719-llvm-79f03e915dcf9715fd3ff47808b991dc52b08f51.zip |
Assign node orders to target intrinsics which do not produce results. rdar://11096639
llvm-svn: 153269
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 2ac9655dd05..6ec38c57b18 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -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()); } } |