Add a method to ScalarEvolution for telling it when a loop has been
authorDan Gohman <gohman@apple.com>
Tue, 17 Feb 2009 20:49:49 +0000 (20:49 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 17 Feb 2009 20:49:49 +0000 (20:49 +0000)
commit60f8a63e2502d57e879bf52a4a48505b74fa9716
tree9d004368211ce140a476954a0d8164d83c30de45
parenta84f47c3e7bd1ba161ca46b64bd2469d49593320
Add a method to ScalarEvolution for telling it when a loop has been
modified in a way that may effect the trip count calculation. Change
IndVars to use this method when it rewrites pointer or floating-point
induction variables instead of using a doInitialization method to
sneak these changes in before ScalarEvolution has a chance to see
the loop. This eliminates the need for LoopPass to depend on
ScalarEvolution.

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