From 30f19382c6b2f70797e57809fcd0c1c103540047 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 5 Jun 2022 08:45:11 -0700 Subject: [PATCH] [Scalar] Remove isValidSingle (NFC) The last use was removed on Feb 18, 2022 in commit 00ab91b70d21f72af59e4e198c6dc819452405af. --- llvm/lib/Transforms/Scalar/ConstraintElimination.cpp | 8 -------- 1 file changed, 8 deletions(-) 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