aports/main/llvm18/allocscore.patch
2024-05-07 10:54:45 +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