HomePhabricator

[mlir][linalg] Fix tile and fuse for outermost reduction.

Authored by gysit on Mon, Nov 22, 2:17 AM.

Description

[mlir][linalg] Fix tile and fuse for outermost reduction.

Tile and fuse failed if the outermost tile loop is a reduction dimension. Add the necessary check to handle outermost reductions and introduce a test case to verify the change.

Reviewed By: nicolasvasilache

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