This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Add "free"-based heap2stack deduction
ClosedPublic

Authored by jdoerfert on Oct 14 2019, 3:34 PM.

Details

Summary

If there is a unique free of the allocated that has to be reached from
the malloc, we can apply the heap-2-stack transformation even if the
pointer escapes.

Event Timeline

jdoerfert created this revision.Oct 14 2019, 3:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2019, 3:34 PM
jdoerfert marked an inline comment as done.Oct 14 2019, 3:38 PM
jdoerfert added inline comments.
llvm/lib/Transforms/IPO/Attributor.cpp
4035

I need to put this pattern into a helper method in the Iterator class.

This revision is now accepted and ready to land.Oct 14 2019, 3:50 PM
This revision was automatically updated to reflect the committed changes.