[mlir][tosa] Add constant folding for tosa.slice
If the input to a tosa.slice operation is a splat we can just replace with another splat. If the result is a single element, replacing with a splat is universally useful. Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D132499
Loading
Please sign in to comment