[all-commits] [llvm/llvm-project] c8dcdb: [mlir][tosa] Fix constant folding of tosa.mul
Eric Kunze via All-commits
all-commits at lists.llvm.org
Thu May 18 16:45:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c8dcdba125193581c5af44bb52c33826ea8625e3
https://github.com/llvm/llvm-project/commit/c8dcdba125193581c5af44bb52c33826ea8625e3
Author: Spenser Bauman <sbauman at mathworks.com>
Date: 2023-05-18 (Thu, 18 May 2023)
Changed paths:
M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
M mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
M mlir/test/Dialect/Tosa/canonicalize.mlir
M mlir/test/Dialect/Tosa/invalid.mlir
Log Message:
-----------
[mlir][tosa] Fix constant folding of tosa.mul
The constant folder for tosa.mul produces a tensor attribute whose type
may not match the result type of the operation when broadcasting is
needed. This results in a tosa.const op whose attribute's type does not
match the type of the const op.
This change explicitly expands the attribute to the expected result
type.
Reviewed By: eric-k256, jpienaar
Differential Revision: https://reviews.llvm.org/D150439
More information about the All-commits
mailing list