This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Canonicalize tosa.transpose to tosa.reshape
ClosedPublic

Authored by rsuderman on Dec 19 2022, 4:48 PM.

Details

Summary

Added tosa.transpose canonicalization for case where a tosa.transpose is
equivalent to a tosa.reshape. This occurs when the permutation does not
permutate non-unary dimensions.

Diff Detail

Event Timeline

rsuderman created this revision.Dec 19 2022, 4:48 PM
rsuderman requested review of this revision.Dec 19 2022, 4:48 PM

Windows build failure.

NatashaKnk accepted this revision.Dec 22 2022, 3:07 PM
This revision is now accepted and ready to land.Dec 22 2022, 3:07 PM
rsuderman retitled this revision from [mlir][tosa] Canonicalize tosa.transpose to tosa.resize to [mlir][tosa] Canonicalize tosa.transpose to tosa.reshape.Jan 3 2023, 10:09 AM