projects/aports·blob master · refs

20 lines · 851 B

1on x86, this fails with a float comparison error even though the floats are the
2same, because it does absolute eq
3--
4--- a/llvm/unittests/CodeGen/RegAllocScoreTest.cpp
5+++ b/llvm/unittests/CodeGen/RegAllocScoreTest.cpp
6@@ -172,14 +172,5 @@
7 ASSERT_EQ(Freq2, TotalScore.loadStoreCounts());
8 ASSERT_EQ(Freq1, TotalScore.cheapRematCounts());
9 ASSERT_EQ(Freq2, TotalScore.expensiveRematCounts());
10- ASSERT_EQ(TotalScore.getScore(),
11- TotalScore.copyCounts() * CopyWeight +
12- TotalScore.loadCounts() * LoadWeight +
13- TotalScore.storeCounts() * StoreWeight +
14- TotalScore.loadStoreCounts() * (LoadWeight + StoreWeight) +
15- TotalScore.cheapRematCounts() * CheapRematWeight +
16- TotalScore.expensiveRematCounts() * ExpensiveRematWeight
17-
18- );
19 }
20 } // end namespace