[llvm] be858bd - [ConstraintElimination] Remove unused function (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 8 08:06:08 PDT 2022


Author: Florian Hahn
Date: 2022-10-08T16:05:56+01:00
New Revision: be858bda69ed3e4bd60af03bb06fd158690a7f6e

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

LOG: [ConstraintElimination] Remove unused function (NFC).

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/ConstraintElimination.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
index 2402802cfadc..6b7905d83323 100644
--- a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
@@ -143,15 +143,6 @@ class ConstraintInfo {
   ConstraintTy getConstraint(CmpInst::Predicate Pred, Value *Op0, Value *Op1,
                              SmallVectorImpl<Value *> &NewVariables) const;
 
-  /// Turn a condition \p CmpI into a vector of constraints, using indices from
-  /// the corresponding constraint system. New variables that need to be added
-  /// to the system are collected in \p NewVariables.
-  ConstraintTy getConstraint(CmpInst *Cmp,
-                             SmallVectorImpl<Value *> &NewVariables) {
-    return getConstraint(Cmp->getPredicate(), Cmp->getOperand(0),
-                         Cmp->getOperand(1), NewVariables);
-  }
-
   /// Try to add information from \p A \p Pred \p B to the unsigned/signed
   /// system if \p Pred is signed/unsigned.
   void transferToOtherSystem(CmpInst::Predicate Pred, Value *A, Value *B,


        


More information about the llvm-commits mailing list