summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2016-09-18 06:10:32 +0000
committerWei Mi <wmi@google.com>2016-09-18 06:10:32 +0000
commitab24cd189f79e657a4a9e2e9e9cd191a4659af00 (patch)
tree1fdbdf539f3648212468f0a6cafa04d0f2d89e54 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent8e781a888ae6d27b6ab1c06790fad8a88d5b72ae (diff)
downloadbcm5719-llvm-ab24cd189f79e657a4a9e2e9e9cd191a4659af00.tar.gz
bcm5719-llvm-ab24cd189f79e657a4a9e2e9e9cd191a4659af00.zip
Change the order of the splitted store from high - low to low - high.
It is a trivial change which could make the testcase easier to be reused for the store splitting in CodeGenPrepare. llvm-svn: 281846
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 316a04ad777..bd882871246 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -12330,10 +12330,10 @@ SDValue DAGCombiner::splitMergedValStore(StoreSDNode *ST) {
DAG.getConstant(HalfValBitSize / 8, DL, Ptr.getValueType()));
// Higher value store.
SDValue St1 =
- DAG.getStore(Chain, DL, Hi, Ptr,
+ DAG.getStore(St0, DL, Hi, Ptr,
ST->getPointerInfo().getWithOffset(HalfValBitSize / 8),
Alignment / 2, MMOFlags, AAInfo);
- return DAG.getNode(ISD::TokenFactor, DL, MVT::Other, St0, St1);
+ return St1;
}
SDValue DAGCombiner::visitINSERT_VECTOR_ELT(SDNode *N) {
OpenPOWER on IntegriCloud