summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-03-22 19:29:09 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-03-22 19:29:09 +0000
commit79f03e915dcf9715fd3ff47808b991dc52b08f51 (patch)
tree04301747549aa4124b671b7c30851ec2c1535c8e /llvm/lib/CodeGen
parentfd4177d9fd75a93e242993fde888e2b894f99a78 (diff)
downloadbcm5719-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.cpp6
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());
}
}
OpenPOWER on IntegriCloud