[llvm] [AArch64][GlobalISel] Add custom legalization for v4s8 = G_TRUNC v4s16 (PR #85610)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 00:54:12 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 047b2b241defcad79a6ac0fec9cda092bac0a922 f5f2578a2566c1eadc5c19d84e123f93df28a5f7 -- llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp b/llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
index 04a228cf52..d5b37796ab 100644
--- a/llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
+++ b/llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
@@ -628,8 +628,7 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
return DstTy.isVector() && SrcTy.getSizeInBits() > 128 &&
DstTy.getScalarSizeInBits() * 2 <= SrcTy.getScalarSizeInBits();
})
- .customIf(all(typeInSet(0, {v4s8}),
- typeInSet(1, {v4s16})))
+ .customIf(all(typeInSet(0, {v4s8}), typeInSet(1, {v4s16})))
.alwaysLegal();
getActionDefinitionsBuilder(G_SEXT_INREG)
``````````
</details>
https://github.com/llvm/llvm-project/pull/85610
More information about the llvm-commits
mailing list