[llvm] [PowerPC] (PR #144089)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 13 08:15:39 PDT 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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
index 736443d55..b0cd8bd3e 100644
--- a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
@@ -1300,13 +1300,12 @@ bool PPCMIPeephole::simplifyCode() {
((MB == 24 && Opcode == PPC::LBARX) ||
(MB == 16 && Opcode == PPC::LHARX))) {
Register SrcReg = MI.getOperand(0).getReg();
- Register DstReg =
- DefMI->getOperand(0).getReg();
+ Register DstReg = DefMI->getOperand(0).getReg();
// Replace all uses of RLWINM's result with LBARX result
MRI->replaceRegWith(DstReg, SrcReg);
- addRegToUpdate(DstReg);
- addRegToUpdate(SrcReg);
+ addRegToUpdate(DstReg);
+ addRegToUpdate(SrcReg);
ToErase = &MI;
Simplified = true;
break;
``````````
</details>
https://github.com/llvm/llvm-project/pull/144089
More information about the llvm-commits
mailing list