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 | 4330034160a3eb6e2cdb7590c797121554fab904 (patch) | |
| tree | d4590a627df76ddb8fdc49fd7428e1e259e26393 /llvm/lib/Analysis/LoopPass.cpp | |
| parent | 24f31a0e59873421311bbe0b16198b4e3ad0cd91 (diff) | |
| download | bcm5719-llvm-4330034160a3eb6e2cdb7590c797121554fab904.tar.gz bcm5719-llvm-4330034160a3eb6e2cdb7590c797121554fab904.zip | |
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.
llvm-svn: 64810
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index da9ac2749a0..c45c2ef4c0b 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/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(); } |

