This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Fold transpose(broadcast(<scalar>))
ClosedPublic

Authored by antiagainst on Apr 1 2022, 7:09 AM.

Details

Summary

For such cases, the transpose op can be elided.

Depends on D122902

Diff Detail

Event Timeline

antiagainst created this revision.Apr 1 2022, 7:09 AM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested review of this revision.Apr 1 2022, 7:09 AM
mravishankar accepted this revision.Apr 1 2022, 10:11 AM

Dont have total context, but this looks OK to me. Maybe wait for another approval.

This revision is now accepted and ready to land.Apr 1 2022, 10:11 AM

This is a straightforward pattern so should be fine.

This revision was automatically updated to reflect the committed changes.