[LoopVectorize][AArch64] Add vectoriser cost model tests for gathers/scatters
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 1 Dec 2021 14:55:10 +0000 (14:55 +0000)
committerDavid Sherwood <david.sherwood@arm.com>
Thu, 9 Dec 2021 15:44:12 +0000 (15:44 +0000)
commitdef8b952ebc00b0ad0fa4196ae27b11a385087ad
treecb0da442e219acb6f802e66d8b6d2e2f7c567104
parentab28cb1c5c4dc7181fae3d47f0601982996739db
[LoopVectorize][AArch64] Add vectoriser cost model tests for gathers/scatters

I've added some tests that were previously missing for the gather-scatter costs
being calculated by the vectorizer for AArch64:

  Transforms/LoopVectorize/AArch64/sve-gather-scatter-cost.ll

The costs are sometimes different to the ones in

  Analysis/CostModel/AArch64/sve-gather.ll

because the vectorizer also adds on the address computation cost.
llvm/test/Transforms/LoopVectorize/AArch64/sve-gather-scatter-cost.ll [new file with mode: 0644]