Make InstCombine aware of the aligned_alloc library function.
Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
Depends on D76970.
Paths
| Differential D76971
[InstCombine] Deduce attributes for aligned_alloc in InstCombine ClosedPublic Authored by bondhugula on Mar 27 2020, 11:40 PM.
Details Summary Make InstCombine aware of the aligned_alloc library function. Signed-off-by: Uday Bondhugula <uday@polymagelabs.com> Depends on D76970.
Diff Detail
Event Timeline
bondhugula marked 2 inline comments as done. Comment ActionsMore test cases.
This revision is now accepted and ready to land.Mar 30 2020, 1:59 PM bondhugula retitled this revision from Deduce attributes for aligned_alloc in InstCombine to [InstCombine] Deduce attributes for aligned_alloc in InstCombine.Mar 31 2020, 10:48 AM Closed by commit rGdc817b2dea9f: [InstCombine] Deduce attributes for aligned_alloc in InstCombine (authored by bondhugula). · Explain WhyMar 31 2020, 10:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 253636 llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
llvm/test/Transforms/InstCombine/malloc-free-delete.ll
|
When Op0C is set (regardless of Op1C), we can set the alignment attribute on the return value, can't we?