mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 06:00:28 +00:00
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:
parent
f73b99ab43
commit
a33b6254bb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user