[llvm] bc860b4 - [NFC] [SCCP] remove unused functions (#105603)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 09:55:28 PDT 2024


Author: Florian Mayer
Date: 2024-08-22T09:55:24-07:00
New Revision: bc860b49a86089bf9bb7ada9927f2027e6ad9096

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

LOG: [NFC] [SCCP] remove unused functions (#105603)

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Utils/SCCPSolver.h
    llvm/lib/Transforms/Utils/SCCPSolver.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/Utils/SCCPSolver.h b/llvm/include/llvm/Transforms/Utils/SCCPSolver.h
index 9f7ccd4a8a32cf..1f959311295258 100644
--- a/llvm/include/llvm/Transforms/Utils/SCCPSolver.h
+++ b/llvm/include/llvm/Transforms/Utils/SCCPSolver.h
@@ -167,9 +167,6 @@ class SCCPSolver {
   /// Return either a Constant or nullptr for a given Value.
   Constant *getConstantOrNull(Value *V) const;
 
-  /// Return a reference to the set of argument tracked functions.
-  SmallPtrSetImpl<Function *> &getArgumentTrackedFunctions();
-
   /// Set the Lattice Value for the arguments of a specialization \p F.
   /// If an argument is Constant then its lattice value is marked with the
   /// corresponding actual argument in \p Args. Otherwise, its lattice value

diff  --git a/llvm/lib/Transforms/Utils/SCCPSolver.cpp b/llvm/lib/Transforms/Utils/SCCPSolver.cpp
index c944859cc69b89..40f0f04c323ddc 100644
--- a/llvm/lib/Transforms/Utils/SCCPSolver.cpp
+++ b/llvm/lib/Transforms/Utils/SCCPSolver.cpp
@@ -829,10 +829,6 @@ class SCCPInstVisitor : public InstVisitor<SCCPInstVisitor> {
 
   Constant *getConstantOrNull(Value *V) const;
 
-  SmallPtrSetImpl<Function *> &getArgumentTrackedFunctions() {
-    return TrackingIncomingArguments;
-  }
-
   void setLatticeValueForSpecializationArguments(Function *F,
                                        const SmallVectorImpl<ArgInfo> &Args);
 
@@ -2157,10 +2153,6 @@ Constant *SCCPSolver::getConstantOrNull(Value *V) const {
   return Visitor->getConstantOrNull(V);
 }
 
-SmallPtrSetImpl<Function *> &SCCPSolver::getArgumentTrackedFunctions() {
-  return Visitor->getArgumentTrackedFunctions();
-}
-
 void SCCPSolver::setLatticeValueForSpecializationArguments(Function *F,
                                    const SmallVectorImpl<ArgInfo> &Args) {
   Visitor->setLatticeValueForSpecializationArguments(F, Args);


        


More information about the llvm-commits mailing list