diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index b726fd97b70b..4d7b59c47635 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -415,9 +415,6 @@ void SCEVUnknown::deleted() { } void SCEVUnknown::allUsesReplacedWith(Value *New) { - // Clear this SCEVUnknown from various maps. - SE->forgetMemoizedResults(this); - // Remove this SCEVUnknown from the uniquing map. SE->UniqueSCEVs.RemoveNode(this);