This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][MemRef] Ensure alloca_scope is inlined with no allocating ops
ClosedPublic

Authored by wsmoses on Mar 2 2022, 12:13 PM.

Diff Detail

Event Timeline

wsmoses created this revision.Mar 2 2022, 12:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 12:13 PM
wsmoses requested review of this revision.Mar 2 2022, 12:13 PM
wsmoses updated this revision to Diff 412544.Mar 2 2022, 2:22 PM

Add recursive side effects

ftynse added inline comments.Mar 4 2022, 2:47 AM
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
278–287

I find the name confusing and the documentation wrong given the current body of the function. It does not check whether an operation is an allocation _scope_, but whether an operation may be allocating. With this change, it only checks whether the operation _itself_ allocates.

wsmoses updated this revision to Diff 413019.Mar 4 2022, 8:22 AM

Change name/docs

ftynse added inline comments.Mar 4 2022, 8:46 AM
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
283

But the op is not a _scope_. It's an allocation.

wsmoses updated this revision to Diff 413030.Mar 4 2022, 8:55 AM

Remove scope from name

ftynse accepted this revision.Mar 4 2022, 8:57 AM
This revision is now accepted and ready to land.Mar 4 2022, 8:57 AM
This revision was landed with ongoing or failed builds.Mar 4 2022, 8:59 AM
This revision was automatically updated to reflect the committed changes.