diff options
author | Rob Suderman <suderman@google.com> | 2022-08-24 15:19:15 -0700 |
---|---|---|
committer | Rob Suderman <suderman@google.com> | 2022-08-24 15:34:02 -0700 |
commit | 89d555134aa1bf6f80aea3043354166cdaaae016 (patch) | |
tree | 406da24ef30d704cc5c26aeac282f5f2be4acf59 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | ecde3036906e4c9e92ffccdd22985e2b7eac5dca (diff) | |
download | llvm-89d555134aa1bf6f80aea3043354166cdaaae016.zip llvm-89d555134aa1bf6f80aea3043354166cdaaae016.tar.gz llvm-89d555134aa1bf6f80aea3043354166cdaaae016.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions