This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Remove AllocaForValue parameter
ClosedPublic

Authored by vitalybuka on Jul 26 2020, 10:37 PM.

Details

Summary

findAllocaForValue uses AllocaForValue to cache resolved values.
The function is used only to resolve arguments of lifetime
intrinsic which usually are not fare for allocas. So result reuse
is likely unnoticeable.

In followup patches I'd like to replace the function with
GetUnderlyingObjects.

Depends on D84616.

Diff Detail

Event Timeline

vitalybuka created this revision.Jul 26 2020, 10:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2020, 10:37 PM
eugenis accepted this revision.Jul 30 2020, 5:29 PM
This revision is now accepted and ready to land.Jul 30 2020, 5:29 PM
This revision was landed with ongoing or failed builds.Jul 30 2020, 6:48 PM
This revision was automatically updated to reflect the committed changes.