[llvm] 68874d8 - [MemoryBuiltins] [NFC] Remove unused overload of isAlignedAllocLikeFn
Bryce Wilson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 15:19:41 PST 2022
Author: Bryce Wilson
Date: 2022-01-13T15:19:04-08:00
New Revision: 68874d8b5f7891e0c2da0d7efd50349c7234d739
URL: https://github.com/llvm/llvm-project/commit/68874d8b5f7891e0c2da0d7efd50349c7234d739
DIFF: https://github.com/llvm/llvm-project/commit/68874d8b5f7891e0c2da0d7efd50349c7234d739.diff
LOG: [MemoryBuiltins] [NFC] Remove unused overload of isAlignedAllocLikeFn
Differential Revision: https://reviews.llvm.org/D117245
Added:
Modified:
llvm/include/llvm/Analysis/MemoryBuiltins.h
llvm/lib/Analysis/MemoryBuiltins.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h
index 7410d577114f..e1090368f7db 100644
--- a/llvm/include/llvm/Analysis/MemoryBuiltins.h
+++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h
@@ -65,8 +65,6 @@ bool isMallocLikeFn(const Value *V,
/// Tests if a value is a call or invoke to a library function that
/// allocates uninitialized memory with alignment (such as aligned_alloc).
bool isAlignedAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI);
-bool isAlignedAllocLikeFn(
- const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
/// Tests if a value is a call or invoke to a library function that
/// allocates zero-filled memory (such as calloc).
diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp
index d667bb872864..530cfab5d186 100644
--- a/llvm/lib/Analysis/MemoryBuiltins.cpp
+++ b/llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -251,11 +251,6 @@ bool llvm::isAlignedAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI) {
return getAllocationData(V, AlignedAllocLike, TLI)
.hasValue();
}
-bool llvm::isAlignedAllocLikeFn(
- const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI) {
- return getAllocationData(V, AlignedAllocLike, GetTLI)
- .hasValue();
-}
/// Tests if a value is a call or invoke to a library function that
/// allocates zero-filled memory (such as calloc).
More information about the llvm-commits
mailing list