[PATCH] D76971: Deduce attributes for aligned_alloc in InstCombine
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 23:57:54 PDT 2020
jdoerfert added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:4445
+ Attribute::getWithDereferenceableOrNullBytes(
+ Call.getContext(), Op1C->getZExtValue()));
} else if (isReallocLikeFn(&Call, TLI) && Op1C) {
----------------
When Op0C is set (regardless of Op1C), we can set the alignment attribute on the return value, can't we?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76971/new/
https://reviews.llvm.org/D76971
More information about the llvm-commits
mailing list