[PATCH] D115143: [AArch64][Analysis] Add on overhead costs for SVE gathers and scatters

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 9 07:04:36 PST 2021


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

LGTM



================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:1786
 
+static unsigned getSVEGatherScatterOverhead(unsigned Opcode) {
+  return Opcode == Instruction::Load ? SVEGatherOverhead : SVEScatterOverhead;
----------------
nit: this one-line function can be inlined.


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

https://reviews.llvm.org/D115143



More information about the llvm-commits mailing list