This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] fix crash when promoting rank-reducing memref.subviews
ClosedPublic

Authored by christopherbate on Jun 5 2022, 10:01 PM.

Details

Summary

This change adds support for promoting linalg operation operands that
are produced by rank-reducing memref.subview ops. This can occur when
linalg-fold-unit-dims transforms are applied before promotion.

Diff Detail

Event Timeline

christopherbate requested review of this revision.Jun 5 2022, 10:01 PM
ThomasRaoux accepted this revision.Jun 5 2022, 10:17 PM
This revision is now accepted and ready to land.Jun 5 2022, 10:17 PM
mravishankar accepted this revision.Jun 6 2022, 9:45 AM

Cool! Thanks!

Just a nit on the message with the patch. The use of rank-reducing subviews could from anywhere. The fact that this might/might-not have come from fold-unit-dims pass is orthogonal.

Cool! Thanks!

Just a nit on the message with the patch. The use of rank-reducing subviews could from anywhere. The fact that this might/might-not have come from fold-unit-dims pass is orthogonal.

Sounds good, I'll update the message before pushing

Update commit message