This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Use dyn_cast instead of cast in patterns
ClosedPublic

Authored by antiagainst on Nov 8 2021, 9:20 AM.

Details

Summary

This avoids crashes when the pattern is applied to ops with
tensor semantics.

Diff Detail

Event Timeline

antiagainst created this revision.Nov 8 2021, 9:20 AM
antiagainst requested review of this revision.Nov 8 2021, 9:20 AM
ThomasRaoux accepted this revision.Nov 8 2021, 9:21 AM
This revision is now accepted and ready to land.Nov 8 2021, 9:21 AM
This revision was landed with ongoing or failed builds.Nov 8 2021, 9:38 AM
This revision was automatically updated to reflect the committed changes.

Can you provide a test for this?