[llvm] [AMDGPU] Fix phi injection in si-i1-lowering (PR #179267)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 3 03:37:57 PST 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 h,cpp -- llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp llvm/lib/Target/AMDGPU/SILowerI1Copies.h --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/SILowerI1Copies.cpp b/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
index fdc73505a..a4e3c2451 100644
--- a/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
@@ -491,9 +491,10 @@ static void instrDefsUsesSCC(const MachineInstr &MI, bool &Def, bool &Use) {
 /// Move instruction to a new position inside the same MBB, if there is no
 /// operand's dependencies. Change the InstrToMovePos after the moved
 /// instruction. returns true if instruction moved, false if not.
-static bool moveIfPossible(MachineBasicBlock &MBB,
-                    llvm::MachineBasicBlock::iterator &InstrToMovePos,
-                    const llvm::MachineBasicBlock::iterator &MoveAfterPos) {
+static bool
+moveIfPossible(MachineBasicBlock &MBB,
+               llvm::MachineBasicBlock::iterator &InstrToMovePos,
+               const llvm::MachineBasicBlock::iterator &MoveAfterPos) {
   MachineInstr &MI = *InstrToMovePos;
 
   for (const MachineOperand &MO : MI.operands()) {

``````````

</details>


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


More information about the llvm-commits mailing list