[llvm] [AMDGPU] Don't realign already allocated LDS. Point fix for 106412 (PR #106421)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 10:16:41 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 829c47f4e0e63dd2a0f181b8f0c21817e1b25ccf 8f97edf0aa6a4fcb94ca305ba896587cfe2c958e --extensions cpp -- llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
index c96ce740ce..38f0b6dda1 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
@@ -1135,7 +1135,7 @@ private:
// If the variable is already allocated, don't change the alignment
continue;
}
-
+
Align Alignment = AMDGPU::getAlign(DL, &GV);
TypeSize GVSize = DL.getTypeAllocSize(GV.getValueType());
``````````
</details>
https://github.com/llvm/llvm-project/pull/106421
More information about the llvm-commits
mailing list