[llvm] [RegAllocEvictAdvisor] Add minimum weight ratio heuristic. (PR #98109)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 21:03:41 PDT 2024
================
@@ -44,6 +44,12 @@ static cl::opt<bool> EnableLocalReassignment(
"may be compile time intensive"),
cl::init(false));
+static cl::opt<float> MinWeightRatioNeededToEvictHint(
+ "min-weight-ratio-needed-to-evict-hint", cl::Hidden,
+ cl::desc("The minimum ration of weights needed in order for the live range with bigger weight to evict the other live range which"
+ "satisfies a hint),
+ cl::init(7.5));
----------------
mtrofin wrote:
This should default to the value that makes this change a NFC, so `-inf`?
https://github.com/llvm/llvm-project/pull/98109
More information about the llvm-commits
mailing list