projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
632c235
)
Assign source ordering to nodes created for StoreInst.
author
Devang Patel
<dpatel@apple.com>
Tue, 26 Oct 2010 22:14:52 +0000
(22:14 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 26 Oct 2010 22:14:52 +0000
(22:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117404
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index b5597f83d0f369d1abed5828ead37dc953bffba0..7c875846b63731a91be08606926a0c132b288ce5 100644
(file)
--- 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