[llvm] [AArch64] Remove superfluous sxtw in peephole opt (PR #96293)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 30 23:25:36 PDT 2024
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 3efac5c68ac3117e8488a7fa247e45951e52936f a2d6de8d98d4f92e740c3aac8b3a159a3229cbd3 -- llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp b/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
index f2a63c52b7..9c7db121fa 100644
--- a/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
+++ b/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
@@ -703,7 +703,7 @@ bool AArch64MIPeepholeOpt::visitCopy(MachineInstr &MI) {
MachineInstr *SrcMI = MRI->getUniqueVRegDef(InputReg);
MachineInstr *CopyMI = SrcMI;
while (SrcMI && SrcMI->isFullCopy() &&
- MRI->hasOneNonDBGUse(SrcMI->getOperand(1).getReg()))
+ MRI->hasOneNonDBGUse(SrcMI->getOperand(1).getReg()))
SrcMI = MRI->getUniqueVRegDef(SrcMI->getOperand(1).getReg());
if (!SrcMI || SrcMI->getOpcode() != AArch64::SBFMXri ||
``````````
</details>
https://github.com/llvm/llvm-project/pull/96293
More information about the llvm-commits
mailing list