]> granicus.if.org Git - llvm/commitdiff
Remove duplicate 'BitWidth' variable. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 28 Aug 2019 14:37:44 +0000 (14:37 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 28 Aug 2019 14:37:44 +0000 (14:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370212 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineShifts.cpp

index 2891edd45029c02bd0c118f5354395ae2b3e8012..b451beebd0f35d208f73dab98c944425bead3792 100644 (file)
@@ -761,7 +761,6 @@ Instruction *InstCombiner::visitShl(BinaryOperator &I) {
   const APInt *ShAmtAPInt;
   if (match(Op1, m_APInt(ShAmtAPInt))) {
     unsigned ShAmt = ShAmtAPInt->getZExtValue();
-    unsigned BitWidth = Ty->getScalarSizeInBits();
 
     // shl (zext X), ShAmt --> zext (shl X, ShAmt)
     // This is only valid if X would have zeros shifted out.