[PATCH] D117356: InstructionCombining: avoid eliding mismatched alloc/free pairs
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 26 10:58:43 PST 2022
xbolva00 added inline comments.
================
Comment at: llvm/lib/Analysis/MemoryBuiltins.cpp:116
// know which functions are nounwind, noalias, nocapture parameters, etc.
static const std::pair<LibFunc, AllocFnsTy> AllocationFnData[] = {
+ {LibFunc_malloc, {MallocLike, 1, 0, -1, -1, MallocFamily::Malloc}},
----------------
Anyway I still think Clang should add attributes and metadata as more general solution wrt this hardcoded list.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117356/new/
https://reviews.llvm.org/D117356
More information about the llvm-commits
mailing list