HomePhabricator

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

Authored by gysit on Wed, Nov 10, 8:06 AM.

Description

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

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

Depends On D113546

Reviewed By: nicolasvasilache

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