[llvm] [SelectionDAG][WebAssembly] Tidy up around endianess and isConstantSplat (PR #68212)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 4 05:29:45 PDT 2023


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 e00f2272d640ad5e8eda8982cd616d3ae56036b7 ca3568dcd9cc7f7e5885ab73e8a9bce6b5de6c3f -- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.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 944832ed7218..c120fd5423d5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -7081,9 +7081,9 @@ SDValue DAGCombiner::visitAND(SDNode *N) {
       // together. So the end result should be the same regardless of in which
       // order we do those operations.
       const bool IsBigEndian = false;
-      bool IsSplat = Vector->isConstantSplat(SplatValue, SplatUndef,
-                                             SplatBitSize, HasAnyUndefs,
-                                             EltBitWidth, IsBigEndian);
+      bool IsSplat =
+          Vector->isConstantSplat(SplatValue, SplatUndef, SplatBitSize,
+                                  HasAnyUndefs, EltBitWidth, IsBigEndian);
 
       // Make sure that variable 'Constant' is only set if 'SplatBitSize' is a
       // multiple of 'BitWidth'. Otherwise, we could propagate a wrong value.

``````````

</details>


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


More information about the llvm-commits mailing list