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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D132499
[mlir][tosa] Add constant folding for tosa.slice ClosedPublic Authored by rsuderman on Aug 23 2022, 1:46 PM.
Details Summary If the input to a tosa.slice operation is a splat we can just replace with
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 23 2022, 2:49 PM Closed by commit rG89d555134aa1: [mlir][tosa] Add constant folding for tosa.slice (authored by rsuderman). · Explain WhyAug 24 2022, 3:34 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 454948 mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
mlir/test/Dialect/Tosa/constant-op-fold.mlir
|