summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-02-20 00:58:29 -0800
committerKazu Hirata <kazu@google.com>2023-02-20 00:58:29 -0800
commit5e111eb275eee3bec1123b4b85606328017e5ee5 (patch)
tree06d9dcd437160417ca01b43cf6550ef98de4b96f /polly
parentf6e22f2f63b4f44adb904d017313f5a286a3a89f (diff)
downloadllvm-5e111eb275eee3bec1123b4b85606328017e5ee5.tar.gz
Migrate away from the soft-deprecated functions in APInt.h (NFC)
Note that those functions on the left hand side are soft-deprecated in favor of those on the right hand side: getMinSignedBits -> getSignificantBits getNullValue -> getZero isNullValue -> isZero isOneValue -> isOne
Diffstat (limited to 'polly')
-rw-r--r--polly/unittests/Isl/IslTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/unittests/Isl/IslTest.cpp b/polly/unittests/Isl/IslTest.cpp
index d3c64407d5da..801758f5c882 100644
--- a/polly/unittests/Isl/IslTest.cpp
+++ b/polly/unittests/Isl/IslTest.cpp
@@ -244,7 +244,7 @@ TEST(Isl, IslValToAPInt) {
auto APLargePow2 = APIntFromVal(IslLargePow2);
EXPECT_TRUE(APLargePow2.isPowerOf2());
EXPECT_EQ(502u, APLargePow2.getBitWidth());
- EXPECT_EQ(502u, APLargePow2.getMinSignedBits());
+ EXPECT_EQ(502u, APLargePow2.getSignificantBits());
}
{
@@ -252,7 +252,7 @@ TEST(Isl, IslValToAPInt) {
auto IslLargeNPow2 = IslExp.pow2().neg();
auto APLargeNPow2 = APIntFromVal(IslLargeNPow2);
EXPECT_EQ(501u, APLargeNPow2.getBitWidth());
- EXPECT_EQ(501u, APLargeNPow2.getMinSignedBits());
+ EXPECT_EQ(501u, APLargeNPow2.getSignificantBits());
EXPECT_EQ(500, (-APLargeNPow2).exactLogBase2());
}
@@ -262,7 +262,7 @@ TEST(Isl, IslValToAPInt) {
auto APLargePow2 = APIntFromVal(IslLargePow2);
EXPECT_TRUE(APLargePow2.isPowerOf2());
EXPECT_EQ(514u, APLargePow2.getBitWidth());
- EXPECT_EQ(514u, APLargePow2.getMinSignedBits());
+ EXPECT_EQ(514u, APLargePow2.getSignificantBits());
}
{
@@ -270,7 +270,7 @@ TEST(Isl, IslValToAPInt) {
auto IslLargeNPow2 = IslExp.pow2().neg();
auto APLargeNPow2 = APIntFromVal(IslLargeNPow2);
EXPECT_EQ(513u, APLargeNPow2.getBitWidth());
- EXPECT_EQ(513u, APLargeNPow2.getMinSignedBits());
+ EXPECT_EQ(513u, APLargeNPow2.getSignificantBits());
EXPECT_EQ(512, (-APLargeNPow2).exactLogBase2());
}