[llvm] [InstCombine] Improve bitfield addition (PR #77184)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 21 05:37:42 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 c41fa0fdd7e14019fc48bece2a2b0b00c88c8518 9a9528293827708b41622e2d2e5c23f3d9ccd5c2 --extensions cpp -- llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index ceb3a13d92..3e9bc75a29 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -3605,7 +3605,7 @@ static Value *foldBitFieldArithmetic(BinaryOperator &I,
   auto MatchBitFieldAdd =
       [&](BinaryOperator &I) -> std::optional<BitFieldAddInfo> {
     const APInt *OptLoMask, *OptLoMask2 = nullptr, *OptUpMask, *LoMask, *UpMask,
-        *UpMask2 = nullptr;
+                            *UpMask2 = nullptr;
     Value *X, *Y, *UpY;
 
     // Bitfield has more than 2 member.

``````````

</details>


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


More information about the llvm-commits mailing list