diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-16 05:17:39 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-16 05:17:39 +0000 |
commit | 5d8e42755cab5400b1057b0aa096aa6e77fffc29 (patch) | |
tree | f5cf857432253698d10858f4880e11b2e6fe01d6 | |
parent | ca043229c73b716605f22125d413ba2d6fe164e1 (diff) | |
download | bcm5719-llvm-5d8e42755cab5400b1057b0aa096aa6e77fffc29.tar.gz bcm5719-llvm-5d8e42755cab5400b1057b0aa096aa6e77fffc29.zip |
Refactor variables unused under non-assert builds (& remove two entirely unused variables).
llvm-svn: 148230
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 5574b214410..c9d9617cc35 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -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 diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 0a00d4645e4..f0bd347db53 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -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; |