[PATCH] D68958: [Attributor] Add "free"-based heap2stack deduction

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 15:37:29 PDT 2019


jdoerfert created this revision.
jdoerfert added reviewers: hfinkel, sstefan1, uenoku.
Herald added subscribers: bollu, hiraditya.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68958

Files:
  llvm/lib/Transforms/IPO/Attributor.cpp
  llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68958.224920.patch
Type: text/x-patch
Size: 5985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191014/d0fb4c22/attachment.bin>


More information about the llvm-commits mailing list