Remove dead variable, const-ref-ize an APInt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2011-01-11 18:26:37 +00:00
parent f73b99ab43
commit a33b6254bb

View File

@ -1703,9 +1703,7 @@ static APInt DemandedBitsLHSMask(ICmpInst &I,
ConstantInt *CI = dyn_cast<ConstantInt>(I.getOperand(1));
if (!CI) return APInt::getAllOnesValue(BitWidth);
APInt RHS = CI->getValue();
APInt Mask(BitWidth, 0);
const APInt &RHS = CI->getValue();
switch (I.getPredicate()) {
// For a UGT comparison, we don't care about any bits that
@ -1730,7 +1728,6 @@ static APInt DemandedBitsLHSMask(ICmpInst &I,
return APInt::getAllOnesValue(BitWidth);
}
return Mask;
}
Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {