[PATCH] D99192: [NFC] Add tests for scalable vectorization of loops with large stride acesses

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 08:26:32 PDT 2021


david-arm created this revision.
david-arm added reviewers: sdesmalen, peterwaller-arm, kmclaughlin.
Herald added a subscriber: kristof.beyls.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch just adds tests that we can vectorize loop such as these:

  for (i = 0; i < n; i++)
    dst[i * 7] += 1;

and

  for (i = 0; i < n; i++)
    if (cond[i])
      dst[i * 7] += 1;

using scalable vectors, where we expect to use gathers and scatters in the
vectorized loop. The vector of pointers used for the gather is identical
to those used for the scatter so there should be no memory dependences.

Tests are added here:

  Transforms/LoopVectorize/AArch64/sve-large-strides.ll


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99192

Files:
  llvm/test/Transforms/LoopVectorize/AArch64/sve-large-strides.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99192.332684.patch
Type: text/x-patch
Size: 5582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210323/1ef8444a/attachment.bin>


More information about the llvm-commits mailing list