summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/ScalarEvolutionTest.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2017-08-04 06:03:51 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2017-08-04 06:03:51 +0000
commit6e724762b14307893ac237047c370fbc080a3635 (patch)
tree212806c5c8d5f5ef9513711e07741aa402673d9c /llvm/unittests/Analysis/ScalarEvolutionTest.cpp
parent054744783153645bab749209464b88a86b8d645b (diff)
downloadbcm5719-llvm-6e724762b14307893ac237047c370fbc080a3635.tar.gz
bcm5719-llvm-6e724762b14307893ac237047c370fbc080a3635.zip
Avoid comparison between signed and unsigned in SCEVExitLimitForget tests
llvm-svn: 310029
Diffstat (limited to 'llvm/unittests/Analysis/ScalarEvolutionTest.cpp')
-rw-r--r--llvm/unittests/Analysis/ScalarEvolutionTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Analysis/ScalarEvolutionTest.cpp b/llvm/unittests/Analysis/ScalarEvolutionTest.cpp
index 94850a030c7..0fd33aac838 100644
--- a/llvm/unittests/Analysis/ScalarEvolutionTest.cpp
+++ b/llvm/unittests/Analysis/ScalarEvolutionTest.cpp
@@ -995,7 +995,7 @@ TEST_F(ScalarEvolutionsTest, SCEVExitLimitForgetLoop) {
const SCEV *EC = SE.getBackedgeTakenCount(Loop);
EXPECT_FALSE(isa<SCEVCouldNotCompute>(EC));
EXPECT_TRUE(isa<SCEVConstant>(EC));
- EXPECT_EQ(cast<SCEVConstant>(EC)->getAPInt().getLimitedValue(), 999);
+ EXPECT_EQ(cast<SCEVConstant>(EC)->getAPInt().getLimitedValue(), 999u);
SE.forgetLoop(Loop);
Br->eraseFromParent();
@@ -1008,7 +1008,7 @@ TEST_F(ScalarEvolutionsTest, SCEVExitLimitForgetLoop) {
const SCEV *NewEC = SE.getBackedgeTakenCount(Loop);
EXPECT_FALSE(isa<SCEVCouldNotCompute>(NewEC));
EXPECT_TRUE(isa<SCEVConstant>(NewEC));
- EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999);
+ EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999u);
}
// Make sure that SCEV invalidates exit limits after invalidating the values it
@@ -1092,7 +1092,7 @@ TEST_F(ScalarEvolutionsTest, SCEVExitLimitForgetValue) {
const SCEV *NewEC = SE.getBackedgeTakenCount(Loop);
EXPECT_FALSE(isa<SCEVCouldNotCompute>(NewEC));
EXPECT_TRUE(isa<SCEVConstant>(NewEC));
- EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999);
+ EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999u);
}
} // end anonymous namespace
OpenPOWER on IntegriCloud