[llvm] [NFC] [SCCP] remove unused functions (PR #105603)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 18:09:43 PDT 2024
https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/105603
None
>From 1e6f0231ae56f34fb90c08724da702d7e43c7b3f Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Wed, 21 Aug 2024 18:09:30 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.4
---
llvm/include/llvm/Transforms/Utils/SCCPSolver.h | 3 ---
llvm/lib/Transforms/Utils/SCCPSolver.cpp | 8 --------
2 files changed, 11 deletions(-)
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