[PATCH] D124425: MemoryBuiltins: replace most users of isFreeCall with isFreeLikeCall
Augie Fackler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 17:16:07 PDT 2022
durin42 created this revision.
Herald added subscribers: ormris, okura, jdoerfert, kuter, hiraditya.
Herald added a project: All.
durin42 requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
With our new attributes-based approach to handling allocator functions,
we need to differentiate between "is this literally free()" and "is this
a function which frees the given pointer." This change introduces the
new function to check for the latter category and moves the easy cases
throughout the codebase to check that instead of literally-free().
Depends on D123090 <https://reviews.llvm.org/D123090>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124425
Files:
llvm/include/llvm/Analysis/MemoryBuiltins.h
llvm/lib/Analysis/CFLGraph.h
llvm/lib/Analysis/GlobalsModRef.cpp
llvm/lib/Analysis/MemoryBuiltins.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/Attributor/heap_to_stack.ll
llvm/test/Transforms/Attributor/value-simplify-pointer-info.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124425.425073.patch
Type: text/x-patch
Size: 50012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220426/933e1ae3/attachment.bin>
More information about the llvm-commits
mailing list