forked from OSchip/llvm-project
[InstCombine] Use setAllBits in place of getAllOnesValue since we know the bitwidths are the same. NFCI
llvm-svn: 299413
This commit is contained in:
parent
82bf48d8b9
commit
e06b6bcfa1
|
@ -235,7 +235,7 @@ Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
|
|||
// operands. This allows visitTruncInst (for example) to simplify the
|
||||
// operand of a trunc without duplicating all the logic below.
|
||||
if (Depth == 0 && !V->hasOneUse())
|
||||
DemandedMask = APInt::getAllOnesValue(BitWidth);
|
||||
DemandedMask.setAllBits();
|
||||
|
||||
switch (I->getOpcode()) {
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue