[llvm] Greedy: Make eviction broken hint cost use CopyCost units (PR #160084)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 08:00:08 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();
----------------
arsenm wrote:
I'm leaning towards no and just rejecting using -1 as a CopyCost. I haven't found anywhere that does anything with that as an impossible value
https://github.com/llvm/llvm-project/pull/160084
More information about the llvm-commits
mailing list