[llvm] <Fix> A replaced SDValue is used to call getNode function (PR #82876)

via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 24 04:46:09 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 a445474d3fdec2bdaaa42a6dc83c2fb01867076f 1310e960dd95f56c97002ec3ec18da5547c8c132 -- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
``````````

</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 50be61c56e..5cbd9ab4dc 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -2737,8 +2737,9 @@ bool X86DAGToDAGISel::matchAddressRecursively(SDValue N, X86ISelAddressMode &AM,
 
       // Convert the shift to scale factor.
       AM.Scale = 1 << ShAmtV;
-      // If matchIndexRecursively is not called here, 
-      // Zext may be replaced by other nodes but later used to call a builder method
+      // If matchIndexRecursively is not called here,
+      // Zext may be replaced by other nodes but later used to call a builder
+      // method
       AM.IndexReg = matchIndexRecursively(Zext, AM, Depth + 1);
       return false;
     }

``````````

</details>


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


More information about the llvm-commits mailing list