[all-commits] [llvm/llvm-project] 4d27f0: [mlir][Tensor] Fix ExtractSliceFromReshape transfo...
Chris via All-commits
all-commits at lists.llvm.org
Mon Sep 19 13:03:02 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d27f06f9454a6733c3f801c8b992193702607b3
https://github.com/llvm/llvm-project/commit/4d27f06f9454a6733c3f801c8b992193702607b3
Author: Christopher Bate <cbate at nvidia.com>
Date: 2022-09-19 (Mon, 19 Sep 2022)
Changed paths:
M mlir/include/mlir/Dialect/Utils/ReshapeOpsUtils.h
M mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshape.cpp
M mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp
M mlir/test/Dialect/Tensor/extract-slice-from-collapse-shape.mlir
M mlir/test/lib/Dialect/Tensor/TestTensorTransforms.cpp
Log Message:
-----------
[mlir][Tensor] Fix ExtractSliceFromReshape transform edge case
The transformation would fail if none of the sliced dimensions were
linearized by the producing `tensor.collapse_shape`. This is a trivial
edge case but it wasn't correctly tested. Fixes the issue and adds a test.
Reviewed By: nicolasvasilache
Differential Revision: https://reviews.llvm.org/D134088
More information about the All-commits
mailing list