Make the attributor pass aware of aligned_alloc for converting heap
allocations to stack ones.
Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
Depends on D76971.
Paths
| Differential D76974
[Attributor] Make attributor aware of aligned_alloc for heap to stack conversion ClosedPublic Authored by bondhugula on Mar 28 2020, 12:20 AM.
Details Summary Make the attributor pass aware of aligned_alloc for converting heap Signed-off-by: Uday Bondhugula <uday@polymagelabs.com> Depends on D76971.
Diff Detail
Event Timelinebondhugula added a child revision: D76975: [GVN] Make GVN aware of aligned_alloc.Mar 28 2020, 12:30 AM bondhugula retitled this revision from Make attributor aware of aligned_alloc for heap to stack conversion to [Attributor] Make attributor aware of aligned_alloc for heap to stack conversion.Mar 31 2020, 10:48 AM lebedev.ri added inline comments.
bondhugula added inline comments.
bondhugula added inline comments.
lebedev.ri added inline comments. This revision is now accepted and ready to land.Apr 1 2020, 9:07 AM Closed by commit rGc4499e333337: [Attributor] Make attributor aware of aligned_alloc for heap to stack conversion (authored by bondhugula). · Explain WhyApr 1 2020, 10:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 254255 llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/heap_to_stack.ll
|
Hmm, what is the 'default' alignment for alloca?
Even for non-aligned_alloc, there's some alignment guarantees for the allocation functions..