This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Add folder for tosa.cast
ClosedPublic

Authored by rsuderman on Aug 23 2022, 5:14 PM.

Details

Summary

Tosa.cast should fold on splats as it is trivial to fold the operation
into the splatted value.

Diff Detail

Event Timeline

rsuderman created this revision.Aug 23 2022, 5:14 PM
Herald added a project: Restricted Project. · View Herald Transcript
rsuderman requested review of this revision.Aug 23 2022, 5:14 PM
rsuderman updated this revision to Diff 455029.Aug 23 2022, 5:36 PM

Added missing newline

NatashaKnk accepted this revision.Aug 29 2022, 1:55 PM
NatashaKnk added inline comments.
mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
483

super-nit: change the name to match the rest?

This revision is now accepted and ready to land.Aug 29 2022, 1:55 PM
This revision was automatically updated to reflect the committed changes.