[llvm] Use instead of in IRSimilarityIdentifierTest.cpp.

This commit is contained in:
Alexander Belyaev 2020-09-24 11:27:42 +02:00
parent a1217620a8
commit a90d72127a
1 changed files with 4 additions and 4 deletions

View File

@ -1685,7 +1685,7 @@ TEST(IRSimilarityIdentifier, InstructionDifference) {
std::vector<std::vector<IRSimilarityCandidate>> SimilarityCandidates;
getSimilarities(*M, SimilarityCandidates);
ASSERT_TRUE(SimilarityCandidates.size() == 0);
ASSERT_TRUE(SimilarityCandidates.empty());
}
// This test checks to see whether we can detect similarity for commutativen
@ -1708,7 +1708,7 @@ TEST(IRSimilarityIdentifier, CommutativeSimilarity) {
std::vector<std::vector<IRSimilarityCandidate>> SimilarityCandidates;
getSimilarities(*M, SimilarityCandidates);
ASSERT_TRUE(SimilarityCandidates.size() == 0);
ASSERT_TRUE(SimilarityCandidates.empty());
}
// Check that we are not finding commutative similarity in non commutative
@ -1733,7 +1733,7 @@ TEST(IRSimilarityIdentifier, NonCommutativeDifference) {
std::vector<std::vector<IRSimilarityCandidate>> SimilarityCandidates;
getSimilarities(*M, SimilarityCandidates);
ASSERT_TRUE(SimilarityCandidates.size() == 0);
ASSERT_TRUE(SimilarityCandidates.empty());
}
// Check that we find similarity despite changing the register names.
@ -1820,5 +1820,5 @@ TEST(IRSimilarityIdentifier, ConstantMappingDifference) {
std::vector<std::vector<IRSimilarityCandidate>> SimilarityCandidates;
getSimilarities(*M, SimilarityCandidates);
ASSERT_TRUE(SimilarityCandidates.size() == 0);
ASSERT_TRUE(SimilarityCandidates.empty());
}