mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-03 10:08:11 +02:00
Add patch from upstream PR for Hexagon tests ref: https://github.com/llvm/llvm-project/pull/66785 Revert commit that makes x86_64 test fail ref: https://github.com/llvm/llvm-project/issues/66776 Add workaround for miscompile(?) on armv 32 bit. https://github.com/llvm/llvm-project/issues/62195
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
|