[PATCH] D132784: [AArch64][TTI] Add cost table entry for trunc over vector of integers.
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 02:07:07 PDT 2022
dmgreen accepted this revision.
dmgreen added a comment.
This revision is now accepted and ready to land.
The new values LGTM. Thanks.
================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:1611
+ // FIXME: v4i64 -> v4i8 should be optimized to 1 uzp1 + 1 xtn
+ {ISD::TRUNCATE, MVT::v4i8, MVT::v4i64, 3},
+ {ISD::TRUNCATE, MVT::v4i16, MVT::v4i32, 1}, // xtn
----------------
It looks like it is already 2 here: https://godbolt.org/z/T4rTqf1Tx. I guess it is not very reliable at the moment.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132784/new/
https://reviews.llvm.org/D132784
More information about the llvm-commits
mailing list