Make the code that updates ScalarEvolution's internal state in response
authorDan Gohman <gohman@apple.com>
Wed, 8 Jul 2009 19:23:34 +0000 (19:23 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 8 Jul 2009 19:23:34 +0000 (19:23 +0000)
commit59ae6b99872953761dfda5984801d23a66692673
treee794255fcc7f10ec803e099c95cc0273f1c0352e
parent85ebb0f66cf07ff071323ff314d58449decd4316
Make the code that updates ScalarEvolution's internal state in response
to a loop deletion more thorough. Don't prune the def-use tree search at
instructions that don't have SCEVs computed, because an instruction with
a user that has a computed SCEV may itself lack a computed SCEV.  Also,
remove loop-related values from the ValuesAtScopes and
ConstantEvolutionLoopExitValues maps as well.

This fixes a regression in 483.xalancbmk.

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