[llvm] [RegAllocEvictAdvisor] Add minimum weight ratio heuristic. (PR #98109)

Mikhail Gudim via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 22:40:57 PDT 2024


================
@@ -157,6 +163,10 @@ bool DefaultEvictionAdvisor::shouldEvict(const LiveInterval &A, bool IsHint,
     return true;
 
   if (A.weight() > B.weight()) {
+    float WeightRatio = A.weight() / B.weight();
----------------
mgudim wrote:

fixed

https://github.com/llvm/llvm-project/pull/98109


More information about the llvm-commits mailing list