[all-commits] [llvm/llvm-project] d12fa3: [mlir] Add a TensorLoadToMemref canonicalization
Nicolas Vasilache via All-commits
all-commits at lists.llvm.org
Fri Feb 19 01:47:20 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d12fa33d736d60d419f86b4ec5f3e77e602d4b1e
https://github.com/llvm/llvm-project/commit/d12fa33d736d60d419f86b4ec5f3e77e602d4b1e
Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
Date: 2021-02-19 (Fri, 19 Feb 2021)
Changed paths:
M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
M mlir/test/Dialect/Standard/canonicalize.mlir
Log Message:
-----------
[mlir] Add a TensorLoadToMemref canonicalization
A folder of `tensor_load + tensor_to_memref` exists but it only applies when
source and destination memref types are the same.
This revision adds a canonicalize `tensor_load + tensor_to_memref` to `memref_cast`
when type mismatches prevent folding to kick in.
Differential Revision: https://reviews.llvm.org/D97038
More information about the All-commits
mailing list