[Attributor] Make attributor aware of aligned_alloc for heap to stack conversion
authorUday Bondhugula <uday@polymagelabs.com>
Sat, 28 Mar 2020 07:15:59 +0000 (12:45 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Wed, 1 Apr 2020 17:56:50 +0000 (23:26 +0530)
commitc4499e333337ef67f30d81eefd044816a8cf6f29
treed476647e5b4f0430b35726b9a1648c5ce3760e1d
parentd40368fdb5e1b90e68b1078f32c283aa800238be
[Attributor] Make attributor aware of aligned_alloc for heap to stack conversion

Make the attributor pass aware of aligned_alloc for converting heap
allocations to stack ones.

Depends on D76971.

Differential Revision: https://reviews.llvm.org/D76974
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/heap_to_stack.ll