This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferize] Add new debug flag: copy-before-write
ClosedPublic

Authored by springerm on Sep 5 2022, 3:46 AM.

Details

Summary

If this flag is set, the analysis is skipped and buffers are copied before every write.

Diff Detail

Event Timeline

springerm created this revision.Sep 5 2022, 3:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 5 2022, 3:46 AM
springerm requested review of this revision.Sep 5 2022, 3:46 AM
tpopp added a comment.Sep 5 2022, 3:58 AM

Awesome! You use copyBeforeWrite and skipAnalysis. I think it would be better to use the same name consistently, like the other options/flags, unless skip-analysis is expected to grow to modifying multiple option values(?)

springerm updated this revision to Diff 457936.Sep 5 2022, 4:50 AM

address comments

springerm retitled this revision from [mlir][bufferize] Add new debug flag: skipAnalysis to [mlir][bufferize] Add new debug flag: copy-before-write.Sep 5 2022, 4:50 AM

Awesome! You use copyBeforeWrite and skipAnalysis. I think it would be better to use the same name consistently, like the other options/flags, unless skip-analysis is expected to grow to modifying multiple option values(?)

Using copy-before-write everywhere now.

tpopp accepted this revision.Sep 5 2022, 5:31 AM
This revision is now accepted and ready to land.Sep 5 2022, 5:31 AM
This revision was automatically updated to reflect the committed changes.