HomePhabricator

[linalg][mlir] Replace getSmallestBoundingIndex in padding (NFC).

Authored by gysit on Wed, Nov 10, 7:12 AM.

Description

[linalg][mlir] Replace getSmallestBoundingIndex in padding (NFC).

Replace the getSmallestBoundingIndex method used in padding by getConstantUpperBoundForIndex that uses flat affine constraints to compute a constant upper bound.

Depends On D113398

Reviewed By: nicolasvasilache

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