Remove duplicate 'BitWidth' variable. NFCI.

llvm-svn: 370212
This commit is contained in:
Simon Pilgrim 2019-08-28 14:37:44 +00:00
parent 3c1996a489
commit 316bfb0f48
1 changed files with 0 additions and 1 deletions

View 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.