This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Fix assertion failure when operand is negative in GenerateOp canonicalization

Authored by sotoshigoto on May 22 2023, 12:40 AM.



When an operand of Tensor::GenerateOp is less than 1 during the canonicalization
process, it triggers an assertion failure related to 'invalid tensor dimension size'
at RankedTensorType::get(..). This assertion failure occurs when the dimension is
less than 1 but not equal to the value of DynamicDim.
This patch resolves the issue reported in

Diff Detail