Skip to content

Commit

Permalink
[NFC] [SCCP] remove unused functions (llvm#105603)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmayer authored and cjdb committed Aug 23, 2024
1 parent 669b39a commit 5948546
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions llvm/include/llvm/Transforms/Utils/SCCPSolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions llvm/lib/Transforms/Utils/SCCPSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5948546

Please sign in to comment.