[llvm] [AArch64] Tweak truncate costs for some scalable vector types (PR #119542)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 02:21:50 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 db93ef14aef9c572e02bc842762bc4d0278148f9 5be65518323a0202b6db01652a49063de4f18b25 --extensions cpp -- llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index 01f5063507..817beb8c72 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -2782,15 +2782,15 @@ InstructionCost AArch64TTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst,
{ISD::TRUNCATE, MVT::v16i32, MVT::v16i64, 4}, // 4 x uzp1
// Truncations on nxvmiN
- {ISD::TRUNCATE, MVT::nxv2i1, MVT::nxv2i8, 2},
+ {ISD::TRUNCATE, MVT::nxv2i1, MVT::nxv2i8, 2},
{ISD::TRUNCATE, MVT::nxv2i1, MVT::nxv2i16, 2},
{ISD::TRUNCATE, MVT::nxv2i1, MVT::nxv2i32, 2},
{ISD::TRUNCATE, MVT::nxv2i1, MVT::nxv2i64, 2},
- {ISD::TRUNCATE, MVT::nxv4i1, MVT::nxv4i8, 2},
+ {ISD::TRUNCATE, MVT::nxv4i1, MVT::nxv4i8, 2},
{ISD::TRUNCATE, MVT::nxv4i1, MVT::nxv4i16, 2},
{ISD::TRUNCATE, MVT::nxv4i1, MVT::nxv4i32, 2},
{ISD::TRUNCATE, MVT::nxv4i1, MVT::nxv4i64, 5},
- {ISD::TRUNCATE, MVT::nxv8i1, MVT::nxv8i8, 2},
+ {ISD::TRUNCATE, MVT::nxv8i1, MVT::nxv8i8, 2},
{ISD::TRUNCATE, MVT::nxv8i1, MVT::nxv8i16, 2},
{ISD::TRUNCATE, MVT::nxv8i1, MVT::nxv8i32, 5},
{ISD::TRUNCATE, MVT::nxv8i1, MVT::nxv8i64, 11},
``````````
</details>
https://github.com/llvm/llvm-project/pull/119542
More information about the llvm-commits
mailing list