[llvm] [X86] Remove `def32` and drop redundant zero extensions after `isel` (PR #225462)

via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 26 22:04:21 PDT 2026


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/X86/X86ISelDAGToDAG.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/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index dda4cabc7..ecd288404 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -1860,8 +1860,8 @@ void X86DAGToDAGISel::PostprocessISelDAG() {
         if (Move.getMachineOpcode() != X86::MOV32rr ||
             !isDef32(Move.getOperand(0)))
           continue;
-        SDNode *Res = CurDAG->UpdateNodeOperands(N, Move.getOperand(0),
-                                                 N->getOperand(1));
+        SDNode *Res =
+            CurDAG->UpdateNodeOperands(N, Move.getOperand(0), N->getOperand(1));
         if (Res != N)
           ReplaceUses(N, Res);
         MadeChange = true;

``````````

</details>


https://github.com/llvm/llvm-project/pull/225462


More information about the llvm-commits mailing list