[llvm] 2922566 - [ValueTracking] Remove unused argument (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 01:25:12 PST 2023


Author: Nikita Popov
Date: 2023-12-08T10:25:04+01:00
New Revision: 292256673c88a27ce548570b19f401f29e4d0ec1

URL: https://github.com/llvm/llvm-project/commit/292256673c88a27ce548570b19f401f29e4d0ec1
DIFF: https://github.com/llvm/llvm-project/commit/292256673c88a27ce548570b19f401f29e4d0ec1.diff

LOG: [ValueTracking] Remove unused argument (NFC)

Added: 
    

Modified: 
    llvm/lib/Analysis/ValueTracking.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index dfd36862b05c1..eb2ee045146cf 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


        


More information about the llvm-commits mailing list