[llvm] [InstCombine] Don't consider aligned_alloc removable if icmp uses result (PR #69474)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 10:34:59 PDT 2023
================
@@ -131,6 +131,11 @@ Constant *getInitialValueOfAllocation(const Value *V,
std::optional<StringRef> getAllocationFamily(const Value *I,
const TargetLibraryInfo *TLI);
+/// If \p V is a call of a function part of an allocation family e.g.
+/// malloc/realloc/calloc/free), return the allocation function kind the called
+/// function.
+AllocFnKind getAllocFnKind(const Value *V);
----------------
fhahn wrote:
Removed, thanks!
https://github.com/llvm/llvm-project/pull/69474
More information about the llvm-commits
mailing list