[llvm] r213928 - Store nodes only have 1 result.
Matt Arsenault
Matthew.Arsenault at amd.com
Fri Jul 25 00:56:43 PDT 2014
Author: arsenm
Date: Fri Jul 25 02:56:42 2014
New Revision: 213928
URL: http://llvm.org/viewvc/llvm-project?rev=213928&view=rev
Log:
Store nodes only have 1 result.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=213928&r1=213927&r2=213928&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Jul 25 02:56:42 2014
@@ -9119,7 +9119,7 @@ bool DAGCombiner::MergeConsecutiveStores
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.
More information about the llvm-commits
mailing list