This is an archive of the discontinued LLVM Phabricator instance.

AssumptionCache: Update documentation comment.
ClosedPublic

Authored by pcc on Feb 14 2017, 5:56 PM.

Details

Summary

The comment was somewhat misleading in that it implied that passes were not
responsible for adding new assumptions to the assumption cache. This new wording now
explicitly mentions that they are required to do so.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Feb 14 2017, 5:56 PM
pcc edited the summary of this revision. (Show Details)Feb 14 2017, 5:57 PM
chandlerc edited edge metadata.Feb 14 2017, 6:01 PM

I would still mention that deleting them is fine.

Also, I strongly suspect there are many more bugs lurking like the one you hit...

pcc updated this revision to Diff 88475.Feb 14 2017, 6:10 PM
  • Mention that deletions are fine
hfinkel added inline comments.Feb 14 2017, 7:02 PM
llvm/include/llvm/Analysis/AssumptionCache.h
35 ↗(On Diff #88475)

This should just read, "passes that create new assumption are required to...".

pcc updated this revision to Diff 88481.Feb 14 2017, 7:46 PM
pcc marked an inline comment as done.
  • Adopt suggested wording
hfinkel accepted this revision.Feb 14 2017, 7:59 PM

LGTM

This revision is now accepted and ready to land.Feb 14 2017, 7:59 PM
This revision was automatically updated to reflect the committed changes.