[llvm] [AMDGPU][PromoteAlloca] Whole-function alloca promotion to vector (PR #84735)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 02:23:53 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 d4569d42b5cb8ba076f0115d3d21d89f68e6ce9d b79b5e88ba72c43cae273efed179aca61c424d95 -- llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp b/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
index 582f06a3d7..0811c1f823 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
@@ -68,12 +68,15 @@ static cl::opt<unsigned> PromoteAllocaToVectorLimit(
static cl::opt<bool> PromoteAllocaWholeFn(
"promote-alloca-vector-whole-function",
- cl::desc("Collect, analyze and sort all allocas within a function before promoting them to vector. When disabled, allocas are promoted one by one in isolation"),
+ cl::desc("Collect, analyze and sort all allocas within a function before "
+ "promoting them to vector. When disabled, allocas are promoted "
+ "one by one in isolation"),
cl::init(true));
static cl::opt<unsigned>
LoopUserWeight("promote-alloca-vector-loop-user-weight",
cl::desc("The bonus weight of users of allocas within loop "
- "when sorting profitable alloca for whole-function alloca promotion to vector"),
+ "when sorting profitable alloca for whole-function "
+ "alloca promotion to vector"),
cl::init(4));
// Shared implementation which can do both promotion to vector and to LDS.
``````````
</details>
https://github.com/llvm/llvm-project/pull/84735
More information about the llvm-commits
mailing list