[llvm] Greedy: Make eviction broken hint cost use CopyCost units (PR #160084)
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 1 23:29:14 PDT 2025
================
@@ -300,12 +300,14 @@ bool DefaultEvictionAdvisor::canEvictInterferenceBasedOnCost(
return false;
// We permit breaking cascades for urgent evictions. It should be the
// last resort, though, so make it really expensive.
- Cost.BrokenHints += 10;
+ Cost.BrokenHints += 10 * MRI->getRegClass(Intf->reg())->getCopyCost();
----------------
mikaelholmen wrote:
Ok, so what do we do here? ```CopyCost=-1``` is used in several places.
@preames suggested a revert and reapply with fix. Will you do that @arsenm?
https://github.com/llvm/llvm-project/pull/160084
More information about the llvm-commits
mailing list