[llvm] [AArch64] recognise trn1/trn2 with flipped operands (PR #169858)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 27 13:46:34 PST 2025
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 origin/main HEAD --extensions cpp,h -- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp llvm/lib/Target/AArch64/AArch64PerfectShuffle.h llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64PerfectShuffle.h b/llvm/lib/Target/AArch64/AArch64PerfectShuffle.h
index 9ffb83577..e6fa2ae72 100644
--- a/llvm/lib/Target/AArch64/AArch64PerfectShuffle.h
+++ b/llvm/lib/Target/AArch64/AArch64PerfectShuffle.h
@@ -6720,9 +6720,9 @@ inline bool isTRNMask(ArrayRef<int> M, unsigned NumElts,
unsigned EvenElt = (unsigned)M[i];
if (EvenElt != i)
Variant0Order0 = false;
- if (EvenElt != i+1)
+ if (EvenElt != i + 1)
Variant1Order0 = false;
- if (EvenElt != NumElts + i )
+ if (EvenElt != NumElts + i)
Variant0Order1 = false;
if (EvenElt != NumElts + i + 1)
Variant1Order1 = false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/169858
More information about the llvm-commits
mailing list