[llvm] r370212 - Remove duplicate 'BitWidth' variable. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 07:37:44 PDT 2019
Author: rksimon
Date: Wed Aug 28 07:37:44 2019
New Revision: 370212
URL: http://llvm.org/viewvc/llvm-project?rev=370212&view=rev
Log:
Remove duplicate 'BitWidth' variable. NFCI.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineShifts.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineShifts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineShifts.cpp?rev=370212&r1=370211&r2=370212&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineShifts.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineShifts.cpp Wed Aug 28 07:37:44 2019
@@ -761,7 +761,6 @@ Instruction *InstCombiner::visitShl(Bina
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.
More information about the llvm-commits
mailing list