aports/community/llvm18/allocscore.patch
Celeste 3bfe8a615a community/llvm18: move from main
After d5bd5ea84a204d2856b750a01ab64a0a4d1b82b3, there
should be nothing else in main/ depending on LLVM 18.
2025-07-16 06:03:50 +00:00

21 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