diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-04 05:03:02 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-04 05:03:02 +0000 |
commit | e06b6bcfa1fee14f5857709eb5c404aa7ebc068d (patch) | |
tree | ef818178d7c0df272b253f1e60c79090eefd8e21 | |
parent | 82bf48d8b955c8b06eabc374196042d8ae14010d (diff) | |
download | bcm5719-llvm-e06b6bcfa1fee14f5857709eb5c404aa7ebc068d.tar.gz bcm5719-llvm-e06b6bcfa1fee14f5857709eb5c404aa7ebc068d.zip |
[InstCombine] Use setAllBits in place of getAllOnesValue since we know the bitwidths are the same. NFCI
llvm-svn: 299413
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp index b126992103e..8eca22ae284 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp @@ -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: |