HomePhabricator

[mlir][memref] Fix expanded shape ops memref.cast folding with changed type

Authored by bkramer on Nov 22 2021, 1:11 PM.

Description

[mlir][memref] Fix expanded shape ops memref.cast folding with changed type

memref.expand_shape has verification logic to make sure
result dim must be static if all the collapsing src dims are static.

This can be relaxed once expand_shape supports more dynamism.

Differential Revision: https://reviews.llvm.org/D114391

Details