[all-commits] [llvm/llvm-project] 1f4649: [SVE][LoopVectorize] Verify support for vectorizin...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Thu Mar 25 07:28:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f4649969062fd2b43dcc09c79eb977c83749caa
      https://github.com/llvm/llvm-project/commit/1f4649969062fd2b43dcc09c79eb977c83749caa
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

  Changed paths:
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-cond-inv-loads.ll
    A llvm/test/Transforms/LoopVectorize/AArch64/sve-inv-loads.ll

  Log Message:
  -----------
  [SVE][LoopVectorize] Verify support for vectorizing loops with invariant loads

D95598 added a cost model for broadcast shuffle, which should enable loops
such as the following to vectorize, where the load of b[42] is invariant
and can be done using a scalar load + splat:

  for (int i=0; i<n; ++i)
    a[i] = b[i] + b[42];

This patch adds tests to verify that we can vectorize such loops.

Reviewed By: joechrisellis

Differential Revision: https://reviews.llvm.org/D98506




More information about the All-commits mailing list