[mlir][linalg][NFC] Simplify padOperandToSmallestStaticBoundingBox
authorMatthias Springer <me@m-sp.org>
Wed, 7 Jun 2023 06:43:21 +0000 (08:43 +0200)
committerMatthias Springer <me@m-sp.org>
Wed, 7 Jun 2023 06:54:07 +0000 (08:54 +0200)
commitefa16ee20ac5d22341a767e93175259a1daadaa3
tree849ad2d585f26011e231e9312bd8f7165422550d
parente9ddb584e80194ab9f54e873aa733ae97da3bb95
[mlir][linalg][NFC] Simplify padOperandToSmallestStaticBoundingBox

The implementation is based on `ValueBoundsOpInterface` to compute upper bounds for tensor dim sizes. It is not necessary to skip over certain ops and reify shape dims; `ValueBoundsOpInterface` already takes care of that.

Differential Revision: https://reviews.llvm.org/D152256
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp