[llvm] AMDGPU/GlobalISel: Mark scc dead on call frame and pc-relative pseudos (PR #231008)

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 09:34:23 PDT 2026


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 origin/main HEAD --extensions cpp -- llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
index b482f69d8..4f51312ec 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
@@ -1487,9 +1487,7 @@ bool AMDGPUCallLowering::lowerTailCall(
   // sequence start and end here.
   if (!IsSibCall) {
     MIB->getOperand(CalleeIdx + 2).setImm(FPDiff);
-    CallSeqStart.addImm(NumBytes)
-                .addImm(0)
-                .setOperandDead(2); // $scc
+    CallSeqStart.addImm(NumBytes).addImm(0).setOperandDead(2); // $scc
     // End the call sequence *before* emitting the call. Normally, we would
     // tidy the frame up after the call. However, here, we've laid out the
     // parameters so that when SP is reset, they will be in the correct

``````````

</details>


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


More information about the llvm-commits mailing list