This is an archive of the discontinued LLVM Phabricator instance.

[docs] Add details to MemorySSA docs.
ClosedPublic

Authored by asbirlea on Mar 15 2022, 2:22 PM.

Details

Summary

Add more details to the docs regarding optimized accesses for Uses and Defs.
Include incoming changes from https://reviews.llvm.org/D121381.

Diff Detail

Event Timeline

asbirlea created this revision.Mar 15 2022, 2:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 2:22 PM
asbirlea requested review of this revision.Mar 15 2022, 2:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 2:22 PM

Seems like a strict improvement to me, didn't spot any defects.

nikic accepted this revision.Mar 17 2022, 1:38 AM

LG

llvm/docs/MemorySSA.rst
286

Need double backticks here.

305

I'd personally omit this example, and only keep the next one, to emphasize importance of the transitive use walk for correctness.

This revision is now accepted and ready to land.Mar 17 2022, 1:38 AM

Thanks for the suggestions, updated a couple more places.

llvm/docs/MemorySSA.rst
305

Part of the reason I added it is because I received the question on how to do this from @reames.

I don't think we have a current use case in tree (like we do for the example below in DSE), so I'm hoping it's useful if a usecase does arise.

asbirlea updated this revision to Diff 416342.Mar 17 2022, 3:23 PM

Update based on comments.

This revision was landed with ongoing or failed builds.Mar 17 2022, 3:25 PM
This revision was automatically updated to reflect the committed changes.

Seems to have broken the documentation build:

Warning, treated as error:
/home/buildbot/llvm-build-dir/llvm-sphinx-docs/llvm/src/llvm/docs/MemorySSA.rst:168:Unknown target name: "build-time use optimization".
llvm/docs/MemorySSA.rst
170

Something like this should fix it.