1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[llvm] Use instead of in IRSimilarityIdentifierTest.cpp.

This commit is contained in:
Alexander Belyaev 2020-09-24 11:27:42 +02:00
parent a3128cb228
commit 8da6b41423

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());
}