[llvm-commits] [llvm] r153269 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Evan Cheng
evan.cheng at apple.com
Thu Mar 22 12:29:11 PDT 2012
Author: evancheng
Date: Thu Mar 22 14:29:09 2012
New Revision: 153269
URL: http://llvm.org/viewvc/llvm-project?rev=153269&view=rev
Log:
Assign node orders to target intrinsics which do not produce results. rdar://11096639
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=153269&r1=153268&r2=153269&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Thu Mar 22 14:29:09 2012
@@ -3586,6 +3586,12 @@
}
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());
}
}
More information about the llvm-commits
mailing list