commit | 08c7551887ca6df905c401c017dc8ab086bffbeb | [log] [tgz] |
---|---|---|
author | Tobias Gysi <gysit@google.com> | Wed Nov 24 19:03:41 2021 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Nov 24 11:15:10 2021 -0800 |
tree | 46d71ba88f45ed52e5052c25c227df72b4be19ee | |
parent | f80b89f9e0923967fea2fced7721dac6339e06ba [diff] |
[mlir][linalg] Update failure conditions for padOperandToSmallestStaticBoundingBox. Change the failure condition of padOperandToSmallestStaticBoundingBox to never fail if the operand is already statically sized. In particular: - if the padding value computation fails -> return failure if the operand shape is dynamic and success if it is static. - if there is no extract slice op -> return failure if the operand shape is dynamic and success if it is static. The latter change prevents padding from failure if the output operand passed by iteration argument is statically sized since in this case the extract / insert slice pairs are removed by canonicalization. Depends On D114153 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D114161 GitOrigin-RevId: a4fd8cb76f8169e26f17e04d9a265a28531e4520
See https://mlir.llvm.org/ for more information.