This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Allow operand-less scf::ExecuteRegionOp to encapsulate scf::YieldOp
ClosedPublic

Authored by nicolasvasilache on Oct 5 2021, 3:14 AM.

Details

Summary

These are considered noops.
Buferization will still fail on scf.execute_region which yield values.
This is used to make comprehensive bufferization interoperate better with external clients.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Oct 5 2021, 3:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2021, 3:14 AM
ftynse accepted this revision.Oct 5 2021, 3:31 AM
ftynse added inline comments.
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
2113–2114

Nit: you can fold the dyn_cast into the if.

This revision is now accepted and ready to land.Oct 5 2021, 3:31 AM