This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Allow promotion of fused views.
AbandonedPublic

Authored by mravishankar on Nov 11 2020, 10:57 PM.

Details

Summary

This patch adds option to promote the fused view. This is useful for
GPU use case where the fused views can be put in workgroup memory. It
would also enable more fusion opportunities since the promotion allows
you to do recomputation without affecting the original value. This is
not implemented yet.

Depends On D90991

Diff Detail

Event Timeline

mravishankar created this revision.Nov 11 2020, 10:57 PM
mravishankar requested review of this revision.Nov 11 2020, 10:57 PM

On a second look it seems like globbbing promotion with tile+fuse is maybe doing too much in one go. It might be better to avoid this. Instead https://reviews.llvm.org/D91503 exposes some utility functions that a client can use to figure out which views to promote. I am leaving this patch here for now, but intend to abandon this.

mravishankar abandoned this revision.Dec 2 2020, 6:36 AM

Retiring this.