The fillOp's value needs to casted
authorPrashant Kumar <prashant@nod-labs.com>
Fri, 4 Nov 2022 17:09:22 +0000 (17:09 +0000)
committerPrashant Kumar <prashant@nod-labs.com>
Thu, 10 Nov 2022 03:43:22 +0000 (03:43 +0000)
commit04b449e147f6be1b466455639055019e508f4137
tree462e910c5f1c88aa67c940bf87b50b14058e7bec
parentc9eeaedccdf2e9e149ec43c2a64580f5dbe0bd05
The fillOp's value needs to casted

During elementwise fusion the fillOp's value was directly
referred without casting which can create mismatching dtypes.

Reviewed By: mravishankar, ThomasRaoux

Differential Revision: https://reviews.llvm.org/D137447
mlir/include/mlir/Dialect/Arith/Utils/Utils.h
mlir/lib/Dialect/Arith/Utils/Utils.cpp
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
mlir/test/Dialect/Linalg/fusion-elementwise-ops.mlir