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

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 20 12:59:12 PDT 2021


dmgreen accepted this revision.
dmgreen added a comment.
This revision is now accepted and ready to land.

Thanks. LGTM



================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:1483
       { TTI::SK_PermuteSingleSrc, MVT::v2f64, 1 }, // mov.
+      // The cost of reverse is just copied from PermuteSingleSrc.
+      { TTI::SK_Reverse, MVT::v2i32, 1 }, // mov.
----------------
This can say something like "Reverse can are lowered with `rev`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100871



More information about the llvm-commits mailing list