[clang-tools-extra] [llvm] [clang] [PowerPC] Peephole address calculation in TOC memops (PR #76488)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 10 21:55:48 PST 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 c9124adfd8291a5f5b1d23295308d8940648c596 e7001e9027b5b09d0856c67942f3437374e031c5 -- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 353367514b..7ab0f9495e 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -7685,8 +7685,9 @@ static void peepholeMemOffset(SDNode *N, SelectionDAG *DAG,
// Check base opcode and its uses, quit if it has multiple uses.
if (MemBase.getMachineOpcode() != PPC::ADDItocL ||
!HBase.isMachineOpcode() ||
- HBase.getMachineOpcode() != PPC::ADDIStocHA8 || !MemBase.hasOneUse() ||
- !HBase.hasOneUse() || HBase.getOperand(1) != ImmOpnd)
+ HBase.getMachineOpcode() != PPC::ADDIStocHA8 ||
+ !MemBase.hasOneUse() || !HBase.hasOneUse() ||
+ HBase.getOperand(1) != ImmOpnd)
return;
UpdateHBase = true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/76488
More information about the cfe-commits
mailing list