diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-17 20:49:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-17 20:49:49 +0000 |
commit | 60f8a63e2502d57e879bf52a4a48505b74fa9716 (patch) | |
tree | 9d004368211ce140a476954a0d8164d83c30de45 /lib/Analysis/LoopPass.cpp | |
parent | a84f47c3e7bd1ba161ca46b64bd2469d49593320 (diff) |
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
Diffstat (limited to 'lib/Analysis/LoopPass.cpp')
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index da9ac2749a..c45c2ef4c0 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -14,7 +14,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Analysis/LoopPass.h" -#include "llvm/Analysis/ScalarEvolution.h" using namespace llvm; //===----------------------------------------------------------------------===// @@ -173,8 +172,6 @@ void LPPassManager::getAnalysisUsage(AnalysisUsage &Info) const { // LPPassManager needs LoopInfo. In the long term LoopInfo class will // become part of LPPassManager. Info.addRequired<LoopInfo>(); - // Used by IndVar doInitialization. - Info.addRequired<ScalarEvolution>(); Info.setPreservesAll(); } |