This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Disable init_tensor elimination by default
ClosedPublic

Authored by nicolasvasilache on Jan 10 2022, 6:12 AM.

Details

Summary

init_tensor elimination is arguably a pre-optimization that should be separated from comprehensive bufferization.
In any case it is still experimental and easily results in wrong IR with violated SSA def-use orderings.
Isolate the optimization behind a flag, separate the test cases and add a test case that would results in wrong IR.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jan 10 2022, 6:12 AM
springerm accepted this revision.Jan 10 2022, 6:18 AM
This revision is now accepted and ready to land.Jan 10 2022, 6:18 AM
This revision was landed with ongoing or failed builds.Jan 10 2022, 6:24 AM
This revision was automatically updated to reflect the committed changes.