[llvm] [AMDGPU][GlobalISel][SelectionDAG] Refactor control-flow intrinsic branch matching (PR #219173)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 01:09:39 PDT 2026
Alexander =?utf-8?q?Hück?= <alexander.huck at amd.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/219173 at github.com>
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/AMDGPULegalizerInfo.cpp llvm/lib/Target/AMDGPU/SIISelLowering.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/AMDGPULegalizerInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
index 0f0812a5c..ed60350c7 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
@@ -4873,8 +4873,8 @@ matchCFIntrinsicBranchUse(MachineInstr &MI, MachineRegisterInfo &MRI) {
MachineBasicBlock *TakenTarget = UseMI->getOperand(1).getMBB();
return CFIntrinsicBranchMatch{Negation, UseMI, UncondBr,
- Negation ? OtherTarget : TakenTarget,
- Negation ? TakenTarget : OtherTarget};
+ Negation ? OtherTarget : TakenTarget,
+ Negation ? TakenTarget : OtherTarget};
}
void AMDGPULegalizerInfo::buildLoadInputValue(Register DstReg,
``````````
</details>
https://github.com/llvm/llvm-project/pull/219173
More information about the llvm-commits
mailing list