Files
llvm/mlir
Alexander Belyaev 58c188507f [mlir][linalg] Fix FoldInitTensorWithDimOp if dim(init_tensor) is static.
It looks like it was a typo. Instead of `*maybeConstantIndex`,
`initTensorOp.getStaticSize(*maybeConstantIndex)` should be used to access the
dim size of the tensor. There is a test for that in `canonicalize.mlir`, but it
was working correctly because `ReplaceStaticShapeDims` was canonicalizing DimOp
before `FoldInitTensorWithDimOp`. So, to make the patterns more "orthogonal",
this case is disabled.

Differential Revision: https://reviews.llvm.org/D109247
2021-09-06 10:47:26 +02:00
..
2021-09-04 08:13:04 +02:00

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.