This is an archive of the discontinued LLVM Phabricator instance.

[Attributor][NFCI] Avoid lookups when resolving returned values
ClosedPublic

Authored by jdoerfert on Aug 20 2019, 10:07 AM.

Details

Summary

If the number of potentially returned values not change since the last
traversal we do not need to visit the returned values again. This works
as we only add values to the returned values set now.

Diff Detail

Repository
rL LLVM

Event Timeline

jdoerfert created this revision.Aug 20 2019, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2019, 10:07 AM

Remove accidentally included code

jdoerfert updated this revision to Diff 216473.Aug 21 2019, 1:52 PM

Use the call site as a key for the cache

This revision is now accepted and ready to land.Aug 21 2019, 2:08 PM
This revision was automatically updated to reflect the committed changes.