This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add a useLinalgCopy option to Linalg bufferization.
ClosedPublic

Authored by nicolasvasilache on Jan 19 2022, 9:51 AM.

Details

Summary

Benchmarks show that memref::CopyOp is curently up to 200x slower than
tiled and vectorized versions of linalg::Copy.
Add a temporary flag to allow comprehensive bufferize to generate a
linalg::GenericOp that implements a copy until this performance bug is
resolved.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jan 19 2022, 9:51 AM
ftynse accepted this revision.Jan 19 2022, 9:52 AM
This revision is now accepted and ready to land.Jan 19 2022, 9:52 AM
This revision was landed with ongoing or failed builds.Jan 19 2022, 10:00 AM
This revision was automatically updated to reflect the committed changes.