Skip to content

Commit e76ddfa

Browse files
[Transforms] Remove HasValueForBlock (NFC)
The function seems to be unused for at least one year.
1 parent aa35c49 commit e76ddfa

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

llvm/include/llvm/Transforms/Utils/SSAUpdaterBulk.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ class SSAUpdaterBulk {
7070
/// rewritten value when RewriteAllUses is called.
7171
void AddUse(unsigned Var, Use *U);
7272

73-
/// Return true if the SSAUpdater already has a value for the specified
74-
/// variable in the specified block.
75-
bool HasValueForBlock(unsigned Var, BasicBlock *BB);
76-
7773
/// Perform all the necessary updates, including new PHI-nodes insertion and
7874
/// the requested uses update.
7975
///

llvm/lib/Transforms/Utils/SSAUpdaterBulk.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ void SSAUpdaterBulk::AddUse(unsigned Var, Use *U) {
6565
Rewrites[Var].Uses.push_back(U);
6666
}
6767

68-
/// Return true if the SSAUpdater already has a value for the specified variable
69-
/// in the specified block.
70-
bool SSAUpdaterBulk::HasValueForBlock(unsigned Var, BasicBlock *BB) {
71-
return (Var < Rewrites.size()) ? Rewrites[Var].Defines.count(BB) : false;
72-
}
73-
7468
// Compute value at the given block BB. We either should already know it, or we
7569
// should be able to recursively reach it going up dominator tree.
7670
Value *SSAUpdaterBulk::computeValueAt(BasicBlock *BB, RewriteInfo &R,

0 commit comments

Comments
 (0)