diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index a5eccaeef16..0ee6e0c677b 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -7568,7 +7568,6 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) { // Store the constants into memory as one consecutive store. if (!IsLoadSrc) { - unsigned LastConst = 0; unsigned LastLegalType = 0; unsigned LastLegalVectorType = 0; bool NonZero = false; @@ -7585,9 +7584,6 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) { break; } - // Mark this index as the largest legal constant. - LastConst = i; - // Find a legal type for the constant store. unsigned StoreBW = (i+1) * ElementSizeBytes * 8; EVT StoreTy = EVT::getIntegerVT(*DAG.getContext(), StoreBW);