[llvm-branch-commits] [llvm] CodeGen/AMDGPU: Allow 3-address conversion of bundled instructions (PR #166213)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 3 11:05:46 PST 2025


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/CodeGen/TwoAddressInstructionPass.cpp llvm/lib/Target/AMDGPU/SIInstrInfo.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/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index d6d23061b..7056ced53 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -815,7 +815,7 @@ bool TwoAddressInstructionImpl::convertInstTo3Addr(
       // Record that one def has been replaced by the other.
       unsigned NewInstrNum = NewMI->getDebugInstrNum();
       MF->makeDebugValueSubstitution(std::make_pair(OldInstrNum, OldIdx),
-                                    std::make_pair(NewInstrNum, NewIdx));
+                                     std::make_pair(NewInstrNum, NewIdx));
     }
 
     MBB->erase(mi); // Nuke the old inst.

``````````

</details>


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


More information about the llvm-branch-commits mailing list