[mlir][tosa] Fix tosa.slice shape inference for ShapedType:kDynamicShape
authorRob Suderman <suderman@google.com>
Fri, 18 Nov 2022 19:43:55 +0000 (11:43 -0800)
committerRob Suderman <suderman@google.com>
Fri, 18 Nov 2022 19:44:05 +0000 (11:44 -0800)
commitfa5a607dbce0caca40d9bd44dff2a114fb589c51
tree4acfe888757ab0e271a935301d529bbeff55c6d4
parentf65e8c3c519ade29139f90d235884d3ad12fae5d
[mlir][tosa] Fix tosa.slice shape inference for ShapedType:kDynamicShape

Change for kDynamicShape means the size needs to be updated to a new value
for slice operation shape inference. Landing fix.

Reviewed By: NatashaKnk

Differential Revision: https://reviews.llvm.org/D138314
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir