Skip to content

Commit 2922566

Browse files
committed
[ValueTracking] Remove unused argument (NFC)
1 parent 24f8bc5 commit 2922566

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static bool isKnownNonZeroFromAssume(const Value *V, const SimplifyQuery &Q) {
616616

617617
static void computeKnownBitsFromCmp(const Value *V, CmpInst::Predicate Pred,
618618
Value *LHS, Value *RHS, KnownBits &Known,
619-
unsigned Depth, const SimplifyQuery &Q) {
619+
const SimplifyQuery &Q) {
620620
if (RHS->getType()->isPointerTy()) {
621621
// Handle comparison of pointer to null explicitly, as it will not be
622622
// covered by the m_APInt() logic below.
@@ -720,13 +720,13 @@ void llvm::computeKnownBitsFromContext(const Value *V, KnownBits &Known,
720720
BasicBlockEdge Edge0(BI->getParent(), BI->getSuccessor(0));
721721
if (Q.DT->dominates(Edge0, Q.CxtI->getParent()))
722722
computeKnownBitsFromCmp(V, Cmp->getPredicate(), Cmp->getOperand(0),
723-
Cmp->getOperand(1), Known, Depth, Q);
723+
Cmp->getOperand(1), Known, Q);
724724

725725
BasicBlockEdge Edge1(BI->getParent(), BI->getSuccessor(1));
726726
if (Q.DT->dominates(Edge1, Q.CxtI->getParent()))
727727
computeKnownBitsFromCmp(V, Cmp->getInversePredicate(),
728728
Cmp->getOperand(0), Cmp->getOperand(1), Known,
729-
Depth, Q);
729+
Q);
730730
}
731731

732732
if (Known.hasConflict())
@@ -794,7 +794,7 @@ void llvm::computeKnownBitsFromContext(const Value *V, KnownBits &Known,
794794
continue;
795795

796796
computeKnownBitsFromCmp(V, Cmp->getPredicate(), Cmp->getOperand(0),
797-
Cmp->getOperand(1), Known, Depth, Q);
797+
Cmp->getOperand(1), Known, Q);
798798
}
799799

800800
// Conflicting assumption: Undefined behavior will occur on this execution

0 commit comments

Comments
 (0)