[PATCH] D132730: [AARCH64][COST] Improve cost of reverse shuffles for AArch64

LiqinWeng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 26 04:01:49 PDT 2022


Miss_Grape added a subscriber: david.
Miss_Grape added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:2952
       // Reverse can be lowered with `rev`.
-      { TTI::SK_Reverse, MVT::v2i32, 1 }, // mov.
       { TTI::SK_Reverse, MVT::v4i32, 2 }, // REV64; EXT
----------------
Why not set the scene for N X Ty < 64? 
eg: {TTI::SK_Reverse, MVT::v2i16, 1}
@David Greene


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132730/new/

https://reviews.llvm.org/D132730



More information about the llvm-commits mailing list