[PATCH] D109055: [SVE][NFC] Add SVE cost model tests for gathers/scatters

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 7 03:15:15 PDT 2021


sdesmalen accepted this revision.
sdesmalen added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/test/Analysis/CostModel/AArch64/sve-gather.ll:22
+; CHECK-LABEL: 'masked_gathers_no_vscale_range'
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 64 for instruction: %NXV4F64 = call <vscale x 4 x double> @llvm.masked.gather.nxv4f64.nxv4p0f64(<vscale x 4 x double*> undef, i32 1, <vscale x 4 x i1> undef, <vscale x 4 x double> undef)
+; CHECK-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %NXV2F64 = call <vscale x 2 x double> @llvm.masked.gather.nxv2f64.nxv2p0f64(<vscale x 2 x double*> undef, i32 1, <vscale x 2 x i1> undef, <vscale x 2 x double> undef)
----------------
nit: I'd suggest making them lower-case like in the test above (`%res.nxv4f64`)


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

https://reviews.llvm.org/D109055



More information about the llvm-commits mailing list