diff options
| author | Joseph Huber <jhuber6@vols.utk.edu> | 2021-12-17 14:28:36 -0500 |
|---|---|---|
| committer | Joseph Huber <jhuber6@vols.utk.edu> | 2021-12-27 16:58:23 -0500 |
| commit | 38fc89623b3ea274ba45be20a19de217e45e1563 (patch) | |
| tree | ec2c8eb3506cff0b426821a8c01bf5f1cf96e528 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 80c14dcc0e2987338fbd27148a3214c3bba4e847 (diff) | |
[Attributor][Fix] Add alignment return attribute to HeapToStack
This patch changes the HeapToStack optimization to attach the return alignment
attribute information to the created alloca instruction. This would cause
problems when replacing the heap allocation with an alloca did not respect the
alignment of the original heap allocation, which would typically be aligned on
an 8 or 16 byte boundary. Malloc calls now contain alignment attributes,
so we can use that information here.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D115888
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
