This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add GenericOp self-copy on buffers folding
ClosedPublic

Authored by nicolasvasilache on Jan 25 2022, 3:02 AM.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jan 25 2022, 3:02 AM
gysit added inline comments.Jan 25 2022, 3:15 AM
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
862

Shouldn't the condition be getNumInputs == 1 && getNumOutputs == 1 && input == output?

pifon2a accepted this revision.Jan 25 2022, 3:18 AM

Thank you!

This revision is now accepted and ready to land.Jan 25 2022, 3:18 AM

Fix incorrect condition and make tests pass.

This revision was landed with ongoing or failed builds.Jan 26 2022, 2:56 AM
This revision was automatically updated to reflect the committed changes.