diff options
author | Jay Foad <jay.foad@amd.com> | 2021-09-30 09:54:57 +0100 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2021-10-04 08:57:44 +0100 |
commit | a9bceb2b059dc24870882a71baece895fe430107 (patch) | |
tree | df54e088f349b1acf32e20d3819ee000ec0a0677 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 0873b9bef4e03b4cfc44a4946c11103c763055df (diff) | |
download | llvm-a9bceb2b059dc24870882a71baece895fe430107.zip llvm-a9bceb2b059dc24870882a71baece895fe430107.tar.gz llvm-a9bceb2b059dc24870882a71baece895fe430107.tar.bz2 |
[APInt] Stop using soft-deprecated constructors and methods in llvm. NFC.
Stop using APInt constructors and methods that were soft-deprecated in
D109483. This fixes all the uses I found in llvm, except for the APInt
unit tests which should still test the deprecated methods.
Differential Revision: https://reviews.llvm.org/D110807
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 95c783a..7533f4f 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -3199,7 +3199,7 @@ bool llvm::recognizeBSwapOrBitReverseIdiom( Instruction *Result = CallInst::Create(F, Provider, "rev", I); InsertedInsts.push_back(Result); - if (!DemandedMask.isAllOnesValue()) { + if (!DemandedMask.isAllOnes()) { auto *Mask = ConstantInt::get(DemandedTy, DemandedMask); Result = BinaryOperator::Create(Instruction::And, Result, Mask, "mask", I); InsertedInsts.push_back(Result); |