This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Vector] Add a ShapeCastOp(BroadcastOp) canonicalization pattern
ClosedPublic

Authored by nicolasvasilache on Jun 28 2022, 8:31 AM.

Details

Summary

This pattern can kick in when the source of the broadcast has a shape
that is a prefix/suffix of the result of the shape_cast.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache requested review of this revision.Jun 28 2022, 8:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2022, 8:31 AM

Drop prefix case that is potentially dangerous.

ThomasRaoux accepted this revision.Jun 28 2022, 8:55 AM
This revision is now accepted and ready to land.Jun 28 2022, 8:55 AM