diff options
author | Nikita Popov <npopov@redhat.com> | 2023-12-08 10:23:48 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-12-08 10:25:04 +0100 |
commit | 292256673c88a27ce548570b19f401f29e4d0ec1 (patch) | |
tree | 3a838940aa6300e3697028043823be43797c764d | |
parent | 24f8bc550646685d4ac263610e4cc010011d6a36 (diff) | |
download | llvm-292256673c88a27ce548570b19f401f29e4d0ec1.zip llvm-292256673c88a27ce548570b19f401f29e4d0ec1.tar.gz llvm-292256673c88a27ce548570b19f401f29e4d0ec1.tar.bz2 |
[ValueTracking] Remove unused argument (NFC)
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index dfd3686..eb2ee04 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -616,7 +616,7 @@ static bool isKnownNonZeroFromAssume(const Value *V, const SimplifyQuery &Q) { static void computeKnownBitsFromCmp(const Value *V, CmpInst::Predicate Pred, Value *LHS, Value *RHS, KnownBits &Known, - unsigned Depth, const SimplifyQuery &Q) { + const SimplifyQuery &Q) { if (RHS->getType()->isPointerTy()) { // Handle comparison of pointer to null explicitly, as it will not be // covered by the m_APInt() logic below. @@ -720,13 +720,13 @@ void llvm::computeKnownBitsFromContext(const Value *V, KnownBits &Known, BasicBlockEdge Edge0(BI->getParent(), BI->getSuccessor(0)); if (Q.DT->dominates(Edge0, Q.CxtI->getParent())) computeKnownBitsFromCmp(V, Cmp->getPredicate(), Cmp->getOperand(0), - Cmp->getOperand(1), Known, Depth, Q); + Cmp->getOperand(1), Known, Q); BasicBlockEdge Edge1(BI->getParent(), BI->getSuccessor(1)); if (Q.DT->dominates(Edge1, Q.CxtI->getParent())) computeKnownBitsFromCmp(V, Cmp->getInversePredicate(), Cmp->getOperand(0), Cmp->getOperand(1), Known, - Depth, Q); + Q); } if (Known.hasConflict()) @@ -794,7 +794,7 @@ void llvm::computeKnownBitsFromContext(const Value *V, KnownBits &Known, continue; computeKnownBitsFromCmp(V, Cmp->getPredicate(), Cmp->getOperand(0), - Cmp->getOperand(1), Known, Depth, Q); + Cmp->getOperand(1), Known, Q); } // Conflicting assumption: Undefined behavior will occur on this execution |