mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 07:16:46 +02:00
20 lines
851 B
Diff
20 lines
851 B
Diff
on x86, this fails with a float comparison error even though the floats are the
|
|
same, because it does absolute eq
|
|
--
|
|
--- a/llvm/unittests/CodeGen/RegAllocScoreTest.cpp
|
|
+++ b/llvm/unittests/CodeGen/RegAllocScoreTest.cpp
|
|
@@ -172,14 +172,5 @@
|
|
ASSERT_EQ(Freq2, TotalScore.loadStoreCounts());
|
|
ASSERT_EQ(Freq1, TotalScore.cheapRematCounts());
|
|
ASSERT_EQ(Freq2, TotalScore.expensiveRematCounts());
|
|
- ASSERT_EQ(TotalScore.getScore(),
|
|
- TotalScore.copyCounts() * CopyWeight +
|
|
- TotalScore.loadCounts() * LoadWeight +
|
|
- TotalScore.storeCounts() * StoreWeight +
|
|
- TotalScore.loadStoreCounts() * (LoadWeight + StoreWeight) +
|
|
- TotalScore.cheapRematCounts() * CheapRematWeight +
|
|
- TotalScore.expensiveRematCounts() * ExpensiveRematWeight
|
|
-
|
|
- );
|
|
}
|
|
} // end namespace
|