summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-02-19 23:56:52 -0800
committerKazu Hirata <kazu@google.com>2023-02-19 23:56:52 -0800
commita28b252d852c31fb7228e095a213347e6926bb0f (patch)
treef6c8c2ce5a40b70c93f8498cffba9bb43979b873 /polly
parent2dfa957f120244ddc0238b548282f67d89f1a832 (diff)
downloadllvm-a28b252d852c31fb7228e095a213347e6926bb0f.tar.gz
Use APInt::getSignificantBits instead of APInt::getMinSignedBits (NFC)
Note that getMinSignedBits has been soft-deprecated in favor of getSignificantBits.
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/Support/GICHelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Support/GICHelper.cpp b/polly/lib/Support/GICHelper.cpp
index 638289c86bec..0e491944c162 100644
--- a/polly/lib/Support/GICHelper.cpp
+++ b/polly/lib/Support/GICHelper.cpp
@@ -74,8 +74,8 @@ APInt polly::APIntFromVal(__isl_take isl_val *Val) {
// isl may represent small numbers with more than the minimal number of bits.
// We truncate the APInt to the minimal number of bits needed to represent the
// signed value it contains, to ensure that the bitwidth is always minimal.
- if (A.getMinSignedBits() < A.getBitWidth())
- A = A.trunc(A.getMinSignedBits());
+ if (A.getSignificantBits() < A.getBitWidth())
+ A = A.trunc(A.getSignificantBits());
free(Data);
isl_val_free(Val);