forked from OSchip/llvm-project
Remove duplicate 'BitWidth' variable. NFCI.
llvm-svn: 370212
This commit is contained in:
parent
3c1996a489
commit
316bfb0f48
|
@ -761,7 +761,6 @@ Instruction *InstCombiner::visitShl(BinaryOperator &I) {
|
||||||
const APInt *ShAmtAPInt;
|
const APInt *ShAmtAPInt;
|
||||||
if (match(Op1, m_APInt(ShAmtAPInt))) {
|
if (match(Op1, m_APInt(ShAmtAPInt))) {
|
||||||
unsigned ShAmt = ShAmtAPInt->getZExtValue();
|
unsigned ShAmt = ShAmtAPInt->getZExtValue();
|
||||||
unsigned BitWidth = Ty->getScalarSizeInBits();
|
|
||||||
|
|
||||||
// shl (zext X), ShAmt --> zext (shl X, ShAmt)
|
// shl (zext X), ShAmt --> zext (shl X, ShAmt)
|
||||||
// This is only valid if X would have zeros shifted out.
|
// This is only valid if X would have zeros shifted out.
|
||||||
|
|
Loading…
Reference in New Issue