aports/main/llvm17/allocscore.patch
Natanael Copa da65c809d9 main/llvm17: add llvm17
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
2023-10-20 13:12:07 +00:00

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