[InstCombine] Use setAllBits in place of getAllOnesValue since we know the bitwidths are the same. NFCI

llvm-svn: 299413
This commit is contained in:
Craig Topper 2017-04-04 05:03:02 +00:00
parent 82bf48d8b9
commit e06b6bcfa1
1 changed files with 1 additions and 1 deletions

View File

@ -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: