This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Added tosa.reverse folder
ClosedPublic

Authored by rsuderman on Sep 1 2022, 12:46 PM.

Details

Summary

Fold cases where a tosa.reverse is a splat or reversing a dim
of length-1.

Diff Detail

Event Timeline

rsuderman created this revision.Sep 1 2022, 12:46 PM
Herald added a project: Restricted Project. · View Herald Transcript
rsuderman requested review of this revision.Sep 1 2022, 12:46 PM
jpienaar accepted this revision.Sep 12 2022, 11:28 AM
jpienaar added a subscriber: jpienaar.
jpienaar added inline comments.
mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
854

Nit: MLIR convention is to elide braces for single line conditionals.

858

Could you add a comment for this case?

mlir/test/Dialect/Tosa/constant-op-fold.mlir
565

Please fix.

This revision is now accepted and ready to land.Sep 12 2022, 11:28 AM
rsuderman updated this revision to Diff 459596.Sep 12 2022, 5:13 PM

Updated for jpienaar comments

rsuderman updated this revision to Diff 459598.Sep 12 2022, 5:14 PM

missed newline

rsuderman updated this revision to Diff 459599.Sep 12 2022, 5:14 PM

git-clang-format

rsuderman marked 3 inline comments as done.Sep 12 2022, 5:15 PM

Address jpienaar comments

This revision was landed with ongoing or failed builds.Sep 12 2022, 5:30 PM
This revision was automatically updated to reflect the committed changes.