[llvm] [AArch64] Expand vector ops when NEON and SVE are unavailable. (PR #90833)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 01:32:19 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 803e03fbb7cd97461f349fb6e235592681fc1e6c 2270ec14ae56733c0b65064c109f2ece6215829f -- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp llvm/lib/Target/AArch64/AArch64ISelLowering.cpp llvm/lib/Target/AArch64/AArch64ISelLowering.h
``````````
</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 12a949a773..365e778938 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -378,8 +378,7 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
addQRTypeForNEON(MVT::v2i64);
addQRTypeForNEON(MVT::v8f16);
addQRTypeForNEON(MVT::v8bf16);
- } else if (Subtarget->hasNEON() ||
- Subtarget->useSVEForFixedLengthVectors()) {
+ } else if (Subtarget->hasNEON() || Subtarget->useSVEForFixedLengthVectors()) {
addRegisterClass(MVT::v16i8, &AArch64::FPR8RegClass);
addRegisterClass(MVT::v8i16, &AArch64::FPR16RegClass);
``````````
</details>
https://github.com/llvm/llvm-project/pull/90833
More information about the llvm-commits
mailing list