[llvm] 30f1938 - [Scalar] Remove isValidSingle (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 5 08:45:17 PDT 2022


Author: Kazu Hirata
Date: 2022-06-05T08:45:11-07:00
New Revision: 30f19382c6b2f70797e57809fcd0c1c103540047

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

LOG: [Scalar] Remove isValidSingle (NFC)

The last use was removed on Feb 18, 2022 in commit
00ab91b70d21f72af59e4e198c6dc819452405af.

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 8b4a49c56b68..a2b62fb10097 100644
--- a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
@@ -90,14 +90,6 @@ struct ConstraintTy {
   /// Returns true if all preconditions for this list of constraints are
   /// satisfied given \p CS and the corresponding \p Value2Index mapping.
   bool isValid(const ConstraintInfo &Info) const;
-
-  /// Returns true if there is exactly one constraint in the list and isValid is
-  /// also true.
-  bool isValidSingle(const ConstraintInfo &Info) const {
-    if (size() != 1)
-      return false;
-    return isValid(Info);
-  }
 };
 
 /// Wrapper encapsulating separate constraint systems and corresponding value


        


More information about the llvm-commits mailing list