This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Add folders for trivial tosa operation cases
ClosedPublic

Authored by rsuderman on Aug 2 2021, 6:46 PM.

Details

Summary

Some folding cases are trivial to fold away, specifically no-op cases where
an operation's input and output are the same. Canonicalizing these away
removes unneeded operations.

The current version includes tensor cast operations to resolve shape
discreprencies that occur when an operation's result type differs from the
input type. These are resolved during a tosa shape propagation pass.

Diff Detail

Event Timeline

rsuderman created this revision.Aug 2 2021, 6:46 PM
rsuderman requested review of this revision.Aug 2 2021, 6:46 PM
rsuderman updated this revision to Diff 363612.Aug 2 2021, 6:52 PM

Removed extra line.

NatashaKnk accepted this revision.Aug 10 2021, 11:48 AM
This revision is now accepted and ready to land.Aug 10 2021, 11:48 AM