This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Fix crash in canonicalization pattern
ClosedPublic

Authored by springerm on Nov 2 2022, 4:37 AM.

Details

Summary

This crash was due to incorrect usage of hasTensorSemantics, which has changed recently with DestinationStyleOpInterface. An op has tensor semantics if all of its inits and inputs are tensors. Previously, only inits needed to be tensors.

Diff Detail

Event Timeline

springerm created this revision.Nov 2 2022, 4:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 4:37 AM
springerm requested review of this revision.Nov 2 2022, 4:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 4:37 AM
nicolasvasilache accepted this revision.Nov 2 2022, 4:55 AM
This revision is now accepted and ready to land.Nov 2 2022, 4:55 AM
This revision was automatically updated to reflect the committed changes.