This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Make linalg FillOp vectorization use Transfer op
ClosedPublic

Authored by ThomasRaoux on Oct 30 2020, 9:22 AM.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Oct 30 2020, 9:22 AM
ThomasRaoux requested review of this revision.Oct 30 2020, 9:22 AM
ThomasRaoux retitled this revision from [mlir][vector] Make liangl FillOp vectorization use Transfer op to [mlir][vector] Make linagl FillOp vectorization use Transfer op.Oct 30 2020, 9:22 AM
ThomasRaoux retitled this revision from [mlir][vector] Make linagl FillOp vectorization use Transfer op to [mlir][vector] Make linalg FillOp vectorization use Transfer op.
mravishankar requested changes to this revision.Nov 3 2020, 12:11 PM

Just one question based on some questions.

mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
122

Its not directly related to this change, but doesnt extractVectorTypeFromScalarView also need to check for static shapes?

This revision now requires changes to proceed.Nov 3 2020, 12:11 PM
ThomasRaoux added inline comments.Nov 3 2020, 12:36 PM
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
122

There is already a check in vectorizeLinalgOpPrecondition that all the shapes are static. So the pattern would have failed before.

ThomasRaoux requested review of this revision.Nov 3 2020, 1:01 PM
mravishankar accepted this revision.Nov 3 2020, 2:30 PM
This revision is now accepted and ready to land.Nov 3 2020, 2:30 PM