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

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 22:27:59 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 50881d03fc46271fc827adcd3d89ba04593b7f08 632e91dfb9f013fb880cd68b274020c961019b2f -- llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp b/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
index 81e05b27ea..6aae115b8c 100644
--- a/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
+++ b/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
@@ -46,8 +46,9 @@ static cl::opt<bool> EnableLocalReassignment(
 
 static cl::opt<float> MinWeightRatioNeededToEvictHint(
     "min-weight-ratio-needed-to-evict-hint", cl::Hidden,
-    cl::desc("The minimum ratio of weights needed in order for the live range with bigger weight to evict the other live range which"
-    "satisfies a hint"),
+    cl::desc("The minimum ratio of weights needed in order for the live range "
+             "with bigger weight to evict the other live range which"
+             "satisfies a hint"),
     cl::init(1.0));
 
 namespace llvm {

``````````

</details>


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


More information about the llvm-commits mailing list