Factor out some of the code for updating old SCEVUnknown values, and
[oota-llvm.git] / include / llvm / Analysis / ScalarEvolution.h
index 1b27efb99550aba47be8d7ab14be8d1639d7835a..b052a82232479bd5a2f68cd930f2ba5601863c17 100644 (file)
@@ -386,6 +386,11 @@ namespace llvm {
     bool isKnownPredicateWithRanges(ICmpInst::Predicate Pred,
                                     const SCEV *LHS, const SCEV *RHS);
 
+    /// forgetSCEVUnknown - V is being deleted or RAUW'd; remove the
+    /// SCEVUnknown for it from the uniquing map, and optionally
+    /// clear its contents to point to a replacement value.
+    void forgetSCEVUnknown(Value *V, Value *NewV);
+
   public:
     static char ID; // Pass identification, replacement for typeid
     ScalarEvolution();