[llvm-commits] [llvm] r165331 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Oct 5 13:08:45 PDT 2012
Author: d0k
Date: Fri Oct 5 15:08:45 2012
New Revision: 165331
URL: http://llvm.org/viewvc/llvm-project?rev=165331&view=rev
Log:
Remove unused but set variable flagged by GCC.
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=165331&r1=165330&r2=165331&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Oct 5 15:08:45 2012
@@ -7568,7 +7568,6 @@
// 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 @@
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);
More information about the llvm-commits
mailing list