[llvm] [InstCombine] Don't consider aligned_alloc removable if icmp uses result (PR #69474)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 09:17:45 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);
----------------
nikic wrote:

These changes are no longer necessary?

https://github.com/llvm/llvm-project/pull/69474


More information about the llvm-commits mailing list