[llvm] [SystemZ] Replace SELRMux with COPY in case of identical operands. (PR #125108)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 11:45:22 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 08c76730f35e1dd3c9330b47fc304a35e6d9087e 4dfdc2cd054fb569bd423eda3e480f2df95dda65 --extensions cpp -- llvm/lib/Target/SystemZ/SystemZPostRewrite.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/SystemZ/SystemZPostRewrite.cpp b/llvm/lib/Target/SystemZ/SystemZPostRewrite.cpp
index 6b6ec5b6b9..cf3073f0f2 100644
--- a/llvm/lib/Target/SystemZ/SystemZPostRewrite.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZPostRewrite.cpp
@@ -114,7 +114,7 @@ void SystemZPostRewrite::selectSELRMux(MachineBasicBlock &MBB,
if (Src1Reg == Src2Reg) {
BuildMI(*MBBI->getParent(), MBBI, MBBI->getDebugLoc(),
TII->get(SystemZ::COPY), DestReg)
- .addReg(MBBI->getOperand(1).getReg(), getRegState(MBBI->getOperand(1)));
+ .addReg(MBBI->getOperand(1).getReg(), getRegState(MBBI->getOperand(1)));
MBBI->eraseFromParent();
return;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/125108
More information about the llvm-commits
mailing list