[llvm] test (PR #99740)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 22:55:16 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 1347b9a3aa671d610e812579ab5e5f05870586cf ee17e74565f5348a3bc484bb02c7b76397a2dd31 --extensions cpp -- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 86cbc5aaa7..caaadc4fa8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -5810,7 +5810,7 @@ SDValue DAGCombiner::hoistLogicOpWithSameOpcodeHands(SDNode *N) {
       return SDValue();
     // Be extra careful sinking truncate. If it's free, there's no benefit in
     // widening a binop. Also, don't create a logic op on an illegal type.
-    if (/*TLI.isZExtFree(VT, XVT) && */TLI.isTruncateFree(XVT, VT))
+    if (/*TLI.isZExtFree(VT, XVT) && */ TLI.isTruncateFree(XVT, VT))
       return SDValue();
     if (!TLI.isTypeLegal(XVT))
       return SDValue();

``````````

</details>


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


More information about the llvm-commits mailing list