[all-commits] [llvm/llvm-project] 9f819f: [mlir][linalg] fix crash in vectorization of eleme...
Chris via All-commits
all-commits at lists.llvm.org
Fri Jun 3 15:41:09 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9f819f4c6218635a5d7c250a90e7ba95c5bd5e2d
https://github.com/llvm/llvm-project/commit/9f819f4c6218635a5d7c250a90e7ba95c5bd5e2d
Author: Christopher Bate <cbate at nvidia.com>
Date: 2022-06-03 (Fri, 03 Jun 2022)
Changed paths:
M mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
M mlir/test/Dialect/Linalg/vectorization.mlir
Log Message:
-----------
[mlir][linalg] fix crash in vectorization of elementwise operations
The current vectorization logic implicitly expects "elementwise"
linalg ops to have projected permutations for indexing maps, but
the precondition logic misses this check. This can result in a
crash when executing the generic vectorization transform on an op
with a non-projected permutation input indexing map. This change
fixes the logic and adds a test (which crashes without this fix).
Differential Revision: https://reviews.llvm.org/D127000
More information about the All-commits
mailing list