From: Simon Pilgrim Date: Mon, 30 Oct 2017 22:38:07 +0000 (+0000) Subject: Fix unused variable warnings. NFCI. X-Git-Tag: llvmorg-6.0.0-rc1~4548 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9cd7abbcff7699f5b74e2e5242d7ff5a18c77f49;p=platform%2Fupstream%2Fllvm.git Fix unused variable warnings. NFCI. llvm-svn: 316964 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 0e0b83f..5a9e798 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2582,7 +2582,6 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known, } // TODO ISD::SIGN_EXTEND_VECTOR_INREG case ISD::SIGN_EXTEND: { - EVT InVT = Op.getOperand(0).getValueType(); computeKnownBits(Op.getOperand(0), Known, DemandedElts, Depth + 1); // If the sign bit is known to be zero or one, then sext will extend // it to the top bits, else it will just zext. @@ -2590,13 +2589,11 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known, break; } case ISD::ANY_EXTEND: { - EVT InVT = Op.getOperand(0).getValueType(); computeKnownBits(Op.getOperand(0), Known, Depth+1); Known = Known.zext(BitWidth); break; } case ISD::TRUNCATE: { - EVT InVT = Op.getOperand(0).getValueType(); computeKnownBits(Op.getOperand(0), Known, DemandedElts, Depth + 1); Known = Known.trunc(BitWidth); break;