[llvm] 3cb11f4 - [Transforms] Remove dead declarations (#217829)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 08:46:36 PDT 2026


Author: Kazu Hirata
Date: 2026-08-21T08:46:31-07:00
New Revision: 3cb11f465cb1c3abd3258310a608118d9ae7f0e3

URL: https://github.com/llvm/llvm-project/commit/3cb11f465cb1c3abd3258310a608118d9ae7f0e3
DIFF: https://github.com/llvm/llvm-project/commit/3cb11f465cb1c3abd3258310a608118d9ae7f0e3.diff

LOG: [Transforms] Remove dead declarations (#217829)

reportOrPersistProfileStats: Added on March 28, 2024 in commit
1d99d7a6f841de594b38936a4a73866b23a8b105 without a corresponding
function definition.

optimizeStrNCpy: The corresponding function definition was removed on
September 27, 2022 in commit e80e134c77bb093370a3e4fee41ebe8710e3564d.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
    llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h b/llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
index 6d52d804ac67c..2ae83dab5bcfd 100644
--- a/llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
+++ b/llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
@@ -233,7 +233,6 @@ class SampleProfileMatcher {
   // Match orphan IR functions to unused top-level profile entries by demangled
   // basename, without requiring a matched caller in the call graph.
   void matchFunctionsWithoutProfileByBasename();
-  void reportOrPersistProfileStats();
 };
 } // end namespace llvm
 #endif // LLVM_TRANSFORMS_IPO_SAMPLEPROFILEMATCHER_H

diff  --git a/llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h b/llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
index 5bdac325b5659..7298ad459a5da 100644
--- a/llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
+++ b/llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
@@ -169,7 +169,6 @@ class LibCallSimplifier {
   Value *optimizeStrCpy(CallInst *CI, IRBuilderBase &B);
   Value *optimizeStpCpy(CallInst *CI, IRBuilderBase &B);
   Value *optimizeStrLCpy(CallInst *CI, IRBuilderBase &B);
-  Value *optimizeStrNCpy(CallInst *CI, IRBuilderBase &B);
   Value *optimizeStrLen(CallInst *CI, IRBuilderBase &B);
   Value *optimizeStrNLen(CallInst *CI, IRBuilderBase &B);
   Value *optimizeStrPBrk(CallInst *CI, IRBuilderBase &B);


        


More information about the llvm-commits mailing list