diff options
author | Kazu Hirata <kazu@google.com> | 2023-02-19 23:56:52 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-02-19 23:56:52 -0800 |
commit | a28b252d852c31fb7228e095a213347e6926bb0f (patch) | |
tree | f6c8c2ce5a40b70c93f8498cffba9bb43979b873 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 2dfa957f120244ddc0238b548282f67d89f1a832 (diff) | |
download | llvm-a28b252d852c31fb7228e095a213347e6926bb0f.zip llvm-a28b252d852c31fb7228e095a213347e6926bb0f.tar.gz llvm-a28b252d852c31fb7228e095a213347e6926bb0f.tar.bz2 |
Use APInt::getSignificantBits instead of APInt::getMinSignedBits (NFC)
Note that getMinSignedBits has been soft-deprecated in favor of
getSignificantBits.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index dd431cc..f028381 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -4698,7 +4698,7 @@ bool AddressingModeMatcher::matchOperationAddr(User *AddrInst, unsigned Opcode, if (ConstantInt *CI = dyn_cast<ConstantInt>(AddrInst->getOperand(i))) { const APInt &CVal = CI->getValue(); - if (CVal.getMinSignedBits() <= 64) { + if (CVal.getSignificantBits() <= 64) { ConstantOffset += CVal.getSExtValue() * TypeSize; continue; } |