[all-commits] [llvm/llvm-project] a84026: [RISCV] Add test for experimental.vector.reverse

LiqinWeng via All-commits all-commits at lists.llvm.org
Thu May 26 23:31:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a84026821bf65b312c6752e6d4318419ab3a4f31
      https://github.com/llvm/llvm-project/commit/a84026821bf65b312c6752e6d4318419ab3a4f31
  Author: Liqin.Weng <Liqin.Weng at streamcomputing.com>
  Date:   2022-05-27 (Fri, 27 May 2022)

  Changed paths:
    A llvm/test/Transforms/LoopVectorize/RISCV/riscv-vector-reverse.ll

  Log Message:
  -----------
  [RISCV] Add test for experimental.vector.reverse

```
void vector_reverse_i64(int *A, int *B, int n) {
  #pragma clang loop vectorize_width(4, scalable)
  for (int i = n-1; i >= 0; i--)
    A[i] = B[i] + 1;
}
```
When option: scalable-vectorization is on (or set #pragma clang loop vectorize_width(elements, scalable)), Reverse Iterators can't loop vectorization as <vscale x elements x elementType>

Reviewed By: craig.topper

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




More information about the All-commits mailing list