[llvm-commits] [llvm] r148230 - in /llvm/trunk/lib: CodeGen/SelectionDAG/TargetLowering.cpp Target/ARM/ARMISelLowering.cpp

David Blaikie dblaikie at gmail.com
Sun Jan 15 21:17:39 PST 2012


Author: dblaikie
Date: Sun Jan 15 23:17:39 2012
New Revision: 148230

URL: http://llvm.org/viewvc/llvm-project?rev=148230&view=rev
Log:
Refactor variables unused under non-assert builds (& remove two entirely unused variables).

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp?rev=148230&r1=148229&r2=148230&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Sun Jan 15 23:17:39 2012
@@ -1615,8 +1615,6 @@
     if (MsbMask ==  DemandedMask) {
       unsigned ShAmt = ExVT.getScalarType().getSizeInBits();
       SDValue InOp = Op.getOperand(0);
-      EVT InVT = Op.getOperand(0).getValueType();
-      EVT ShTy = getShiftAmountTy(InVT);
       // In this code we may handle vector types. We can't use the
       // getShiftAmountTy API because it only works on scalars.
       // We use the shift value type because we know that its an integer

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=148230&r1=148229&r2=148230&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Sun Jan 15 23:17:39 2012
@@ -3046,8 +3046,8 @@
 }
 
 static SDValue LowerVectorFP_TO_INT(SDValue Op, SelectionDAG &DAG) {
-  EVT VT = Op.getValueType();
-  assert(VT.getVectorElementType() == MVT::i32 && "Unexpected custom lowering");
+  assert(Op.getValueType().getVectorElementType() == MVT::i32 
+         && "Unexpected custom lowering");
 
   if (Op.getOperand(0).getValueType().getVectorElementType() == MVT::f32)
     return Op;





More information about the llvm-commits mailing list