[llvm] [VectorCombine] Fold "(or (zext (bitcast X)), (shl (zext (bitcast Y)), C))" -> "(bitcast (concat X, Y))" MOVMSK bool mask style patterns (PR #119559)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 05:57:31 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 5e007afa9d4f175decc328ee89533a5fe89be99b 57dbded1cc24710f871a59424193000fb10ff213 --extensions cpp -- llvm/lib/Transforms/Vectorize/VectorCombine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
index e9cfdf1744..8b033985a3 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -1479,7 +1479,8 @@ bool VectorCombine::foldConcatOfBoolMasks(Instruction &I) {
return false;
auto *ConcatTy = FixedVectorType::getDoubleElementsVectorType(MaskTy);
- auto *ConcatIntTy = Type::getIntNTy(Ty->getContext(), ConcatTy->getNumElements());
+ auto *ConcatIntTy =
+ Type::getIntNTy(Ty->getContext(), ConcatTy->getNumElements());
auto *MaskIntTy = Type::getIntNTy(Ty->getContext(), ShAmtDiff);
SmallVector<int, 32> ConcatMask(ConcatTy->getNumElements());
``````````
</details>
https://github.com/llvm/llvm-project/pull/119559
More information about the llvm-commits
mailing list