[Mlir-commits] [mlir] [mlir][vectorize] Support affine.apply in SuperVectorize (PR #77968)

Hsiangkai Wang llvmlistbot at llvm.org
Mon Feb 5 15:17:22 PST 2024


================
@@ -0,0 +1,65 @@
+// RUN: mlir-opt %s -affine-super-vectorize="virtual-vector-size=8 test-fastest-varying=0" -split-input-file | FileCheck %s
+
----------------
Hsiangkai wrote:

In this case, we already have `affine.apply` to calculate the index `%1`. `affine.load` still uses another expression to update its third index. `makePermutationMap` will detect the duplication and file an assert. If we move `+ 1` into `affine.apply`, it can generate code correctly.

https://github.com/llvm/llvm-project/pull/77968


More information about the Mlir-commits mailing list