[llvm] [AMDGPU] Mitigate GFX12 VALU read SGPR hazard (PR #100067)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 23:30:18 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 987ffc31f8813f8b4157f5191dcff63a7c4db161 d44d2f7ccc0657fc49e575054778883a2df0e549 --extensions cpp,h -- llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h llvm/lib/Target/AMDGPU/GCNSubtarget.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp b/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
index 39444f53d2..cc39fd1740 100644
--- a/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
@@ -3014,7 +3014,8 @@ bool GCNHazardRecognizer::fixVALUMaskWriteHazard(MachineInstr *MI) {
// Return the numeric ID 0-63 of an 64b SGPR pair for a given SGPR.
// i.e. SGPR0 = SGPR0_SGPR1 = 0, SGPR3 = SGPR2_SGPR3 = 1, etc
-static std::optional<unsigned> sgprPairNumber(Register Reg, const SIRegisterInfo &TRI) {
+static std::optional<unsigned> sgprPairNumber(Register Reg,
+ const SIRegisterInfo &TRI) {
switch (Reg) {
case AMDGPU::M0:
case AMDGPU::EXEC:
``````````
</details>
https://github.com/llvm/llvm-project/pull/100067
More information about the llvm-commits
mailing list