diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2021-04-20 02:03:38 +0200 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2021-04-20 02:04:18 +0200 |
commit | 324d641b75b54a8772c3c9a881eedad62dc5518c (patch) | |
tree | 9621b948b6c997630828572a69a0adebbc9e373f /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | a2cd6d07691a645bfb8fb5eeeba2eb5970312c7f (diff) | |
download | llvm-324d641b75b54a8772c3c9a881eedad62dc5518c.zip llvm-324d641b75b54a8772c3c9a881eedad62dc5518c.tar.gz llvm-324d641b75b54a8772c3c9a881eedad62dc5518c.tar.bz2 |
[InstCombine] Enhance deduction of alignment for aligned_alloc
This patch improves https://reviews.llvm.org/D76971 (Deduce attributes for aligned_alloc in InstCombine) and implements "TODO" item mentioned in the review of that patch.
> The function aligned_alloc() is the same as memalign(), except for the added restriction that size should be a multiple of alignment.
Currently, we simply bail out if we see a non-constant size - change that.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D100785
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions