[InstCombine] Deduce attributes for aligned_alloc in InstCombine
authorUday Bondhugula <uday@polymagelabs.com>
Sat, 28 Mar 2020 06:35:36 +0000 (12:05 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Tue, 31 Mar 2020 17:47:28 +0000 (23:17 +0530)
commitdc817b2dea9f28e22470d1d74956f404fcec4e01
treed95f296bbf171e6a3a4d51eb688ce76d38346a1b
parentcb0fa3234daf973c146b25ba8f9a95a40ee189e9
[InstCombine] Deduce attributes for aligned_alloc in InstCombine

Make InstCombine aware of the aligned_alloc library function.

Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
Depends on D76970.

Differential Revision: https://reviews.llvm.org/D76971
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
llvm/test/Transforms/InstCombine/malloc-free-delete.ll