This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Use subview instead of linalg.slice in Promotion.cpp
ClosedPublic

Authored by nicolasvasilache on Apr 7 2020, 12:41 PM.

Details

Summary

This revision removes the reliance of Promotion on linalg.slice which is meant
for the rank-reducing case.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2020, 12:41 PM
asaadaldien accepted this revision.Apr 7 2020, 3:53 PM
asaadaldien added inline comments.
mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
57

What about return size here if (!llvm::any_of(affineMinOp.getAffineMap().getResults()) is a an AffineConstantExpr ?

119

Nit: This isn't ranges any more? please rename it.

This revision is now accepted and ready to land.Apr 7 2020, 3:53 PM

Address review comments.

This revision was automatically updated to reflect the committed changes.