From: Matt Arsenault Date: Fri, 25 Jul 2014 07:56:42 +0000 (+0000) Subject: Store nodes only have 1 result. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=197a1e26e3c8fe32b144c3dbf4b82b21e3f13849;p=platform%2Fupstream%2Fllvm.git Store nodes only have 1 result. llvm-svn: 213928 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index a9ba5b8..275790f 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.