[llvm] [AArch64] Optimise MOVI + CMGT to CMGE (PR #74499)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 05:11:50 PST 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 a1b9736e9b588bdb510b49e373006b06f57e61c7 eb76b680724981d329d55d1f9ffcce677079b79e -- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 0c411f4652..bc74d44a8f 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -13711,8 +13711,8 @@ static SDValue EmitVectorComparison(SDValue LHS, SDValue RHS,
bool HasAnyUndefs;
BuildVectorSDNode *BVN = dyn_cast<BuildVectorSDNode>(RHS.getNode());
- bool IsCnst = BVN &&
- BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs);
+ bool IsCnst = BVN && BVN->isConstantSplat(SplatValue, SplatUndef,
+ SplatBitSize, HasAnyUndefs);
bool IsZero = IsCnst && SplatValue == 0;
bool IsOne = IsCnst && SplatValue == 1;
bool IsMinusOne = IsCnst && SplatValue.isAllOnes();
``````````
</details>
https://github.com/llvm/llvm-project/pull/74499
More information about the llvm-commits
mailing list