[SCEV] Extract helper function from isImpliedCond; NFC
[oota-llvm.git] / include / llvm / Analysis / ScalarEvolution.h
index f1efeb877fa1d8527dfe626801930963eab7b106..62d66c246d717bedfa2bee84fc1b48b18c664209 100644 (file)
@@ -506,6 +506,13 @@ namespace llvm {
                        Value *FoundCondValue,
                        bool Inverse);
 
+    /// Test whether the condition described by Pred, LHS, and RHS is true
+    /// whenever the condition described by FoundPred, FoundLHS, FoundRHS is
+    /// true.
+    bool isImpliedCond(ICmpInst::Predicate Pred, const SCEV *LHS,
+                       const SCEV *RHS, ICmpInst::Predicate FoundPred,
+                       const SCEV *FoundLHS, const SCEV *FoundRHS);
+
     /// Test whether the condition described by Pred, LHS, and RHS is true
     /// whenever the condition described by Pred, FoundLHS, and FoundRHS is
     /// true.