diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-07-25 07:56:42 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-07-25 07:56:42 +0000 |
commit | 197a1e26e3c8fe32b144c3dbf4b82b21e3f13849 (patch) | |
tree | 5c00b2450ae50018a18b80daf9a8d21c9aa261a7 /llvm/lib/CodeGen | |
parent | d6c57554f93006422796aaafd79e8eb0374d7cd5 (diff) | |
download | bcm5719-llvm-197a1e26e3c8fe32b144c3dbf4b82b21e3f13849.tar.gz bcm5719-llvm-197a1e26e3c8fe32b144c3dbf4b82b21e3f13849.zip |
Store nodes only have 1 result.
llvm-svn: 213928
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index a9ba5b87bb9..275790f37c0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -9119,7 +9119,7 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) { StoreSDNode *Index = St; while (Index) { // If the chain has more than one use, then we can't reorder the mem ops. - if (Index != St && !SDValue(Index, 1)->hasOneUse()) + if (Index != St && !SDValue(Index, 0)->hasOneUse()) break; // Find the base pointer and offset for this memory node. |