Refactor variables unused under non-assert builds (& remove two entirely unused varia...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 16 Jan 2012 05:17:39 +0000 (05:17 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 16 Jan 2012 05:17:39 +0000 (05:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148230 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp

index 5574b214410fe4fac785da298df7473bc17a7174..c9d9617cc35c2291da4e5aea99edcba265aa0f8b 100644 (file)
@@ -1615,8 +1615,6 @@ bool TargetLowering::SimplifyDemandedBits(SDValue Op,
     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
index 0a00d4645e4c7234cf55c3617742bb11d5265574..f0bd347db53bfa68704083f8286a80bf05643e06 100644 (file)
@@ -3046,8 +3046,8 @@ SDValue ARMTargetLowering::LowerBR_JT(SDValue Op, SelectionDAG &DAG) const {
 }
 
 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;