[llvm] [AMDGPU] Support dynamically sized allocas (PR #121148)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 26 22:05:13 PST 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 6285c46e164bcb9cbc66bc91c03f41dbbeff69e5 0377bb6e065339b90e2bb68c36cf4a9feb11ac26 --extensions cpp,h -- llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp llvm/lib/Target/AMDGPU/SIISelLowering.cpp llvm/lib/Target/AMDGPU/SIISelLowering.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
index b99ae9eb3b..08e23cbf34 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
@@ -1192,8 +1192,7 @@ bool AMDGPURegisterBankInfo::applyMappingDynStackAlloc(
if (SizeBank != &AMDGPU::SGPRRegBank) {
auto WaveReduction =
- B.buildIntrinsic(Intrinsic::amdgcn_wave_reduce_umax,
- {LLT::scalar(32)})
+ B.buildIntrinsic(Intrinsic::amdgcn_wave_reduce_umax, {LLT::scalar(32)})
.addUse(AllocSize)
.addImm(0);
AllocSize = WaveReduction.getReg(0);
``````````
</details>
https://github.com/llvm/llvm-project/pull/121148
More information about the llvm-commits
mailing list