[PATCH] D76974: Make attributor aware of aligned_alloc for heap to stack conversion
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 28 00:30:34 PDT 2020
jdoerfert added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:5053
+ new AllocaInst(Type::getInt8Ty(F->getContext()), AS, Size, alignment,
+ "", MallocCall->getNextNode());
----------------
Nit: `Alignment`
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:5205
+ return true;
+ }
} else if (IsCalloc) {
----------------
Why a signed comparison?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76974/new/
https://reviews.llvm.org/D76974
More information about the llvm-commits
mailing list