diff options
author | Devang Patel <dpatel@apple.com> | 2010-10-26 22:14:52 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-10-26 22:14:52 +0000 |
commit | 7e13efad388f86a4adcb48ec164ee0ba154d0296 (patch) | |
tree | 174a857b54f68244740d52afdb954661736456a5 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 632c235a316e38e5d0c6d66498064bc3e391fab1 (diff) | |
download | external_llvm-7e13efad388f86a4adcb48ec164ee0ba154d0296.zip external_llvm-7e13efad388f86a4adcb48ec164ee0ba154d0296.tar.gz external_llvm-7e13efad388f86a4adcb48ec164ee0ba154d0296.tar.bz2 |
Assign source ordering to nodes created for StoreInst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index b5597f8..7c87584 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -3021,8 +3021,11 @@ void SelectionDAGBuilder::visitStore(const StoreInst &I) { isVolatile, isNonTemporal, Alignment, TBAAInfo); } - DAG.setRoot(DAG.getNode(ISD::TokenFactor, getCurDebugLoc(), - MVT::Other, &Chains[0], NumValues)); + SDValue StoreNode = DAG.getNode(ISD::TokenFactor, getCurDebugLoc(), + MVT::Other, &Chains[0], NumValues); + ++SDNodeOrder; + AssignOrderingToNode(StoreNode.getNode()); + DAG.setRoot(StoreNode); } /// visitTargetIntrinsic - Lower a call of a target intrinsic to an INTRINSIC |