Indvars needs to explicitly notify ScalarEvolution when it is replacing
authorDan Gohman <gohman@apple.com>
Thu, 18 Feb 2010 23:26:33 +0000 (23:26 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 18 Feb 2010 23:26:33 +0000 (23:26 +0000)
commitaa11defd1c66dbde0c757c99791c4ae4d740fc3e
treea8b39fb2b0d7b3248227a27ac9c24db838ac7567
parent1c40e188c579c49f811eee499af2f371298c758c
Indvars needs to explicitly notify ScalarEvolution when it is replacing
a loop exit value, so that if a loop gets deleted, ScalarEvolution
isn't stick holding on to dangling SCEVAddRecExprs for that loop. This
fixes PR6339.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96626 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp
lib/Transforms/Scalar/IndVarSimplify.cpp