diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-30 22:53:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-30 22:53:53 +0000 |
commit | ed39ccae8defa2660cd0cf9233528a8a1f03d027 (patch) | |
tree | 4dc3a9869388c0159151efe7a9292222c5a57002 /llvm/lib/Analysis/InductionVariable.cpp | |
parent | 1b09a9ab68eb2b5230b0d1002b24323157e62805 (diff) | |
download | bcm5719-llvm-ed39ccae8defa2660cd0cf9233528a8a1f03d027.tar.gz bcm5719-llvm-ed39ccae8defa2660cd0cf9233528a8a1f03d027.zip |
- Eliminate the last traces of the 'analysis' namespace
llvm-svn: 3550
Diffstat (limited to 'llvm/lib/Analysis/InductionVariable.cpp')
-rw-r--r-- | llvm/lib/Analysis/InductionVariable.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/InductionVariable.cpp b/llvm/lib/Analysis/InductionVariable.cpp index 485586a018c..5703d6de2c0 100644 --- a/llvm/lib/Analysis/InductionVariable.cpp +++ b/llvm/lib/Analysis/InductionVariable.cpp @@ -25,9 +25,6 @@ #include "llvm/Constants.h" #include "llvm/Assembly/Writer.h" -using analysis::ExprType; - - static bool isLoopInvariant(const Value *V, const Loop *L) { if (isa<Constant>(V) || isa<Argument>(V) || isa<GlobalValue>(V)) return true; @@ -85,8 +82,8 @@ InductionVariable::InductionVariable(PHINode *P, LoopInfo *LoopInfo) { Value *V2 = Phi->getIncomingValue(1); if (L == 0) { // No loop information? Base everything on expression analysis - ExprType E1 = analysis::ClassifyExpression(V1); - ExprType E2 = analysis::ClassifyExpression(V2); + ExprType E1 = ClassifyExpression(V1); + ExprType E2 = ClassifyExpression(V2); if (E1.ExprTy > E2.ExprTy) // Make E1 be the simpler expression std::swap(E1, E2); @@ -128,7 +125,7 @@ InductionVariable::InductionVariable(PHINode *P, LoopInfo *LoopInfo) { } if (Step == 0) { // Unrecognized step value... - ExprType StepE = analysis::ClassifyExpression(V2); + ExprType StepE = ClassifyExpression(V2); if (StepE.ExprTy != ExprType::Linear || StepE.Var != Phi) return; @@ -136,7 +133,7 @@ InductionVariable::InductionVariable(PHINode *P, LoopInfo *LoopInfo) { if (isa<PointerType>(ETy)) ETy = Type::ULongTy; Step = (Value*)(StepE.Offset ? StepE.Offset : ConstantInt::get(ETy, 0)); } else { // We were able to get a step value, simplify with expr analysis - ExprType StepE = analysis::ClassifyExpression(Step); + ExprType StepE = ClassifyExpression(Step); if (StepE.ExprTy == ExprType::Linear && StepE.Offset == 0) { // No offset from variable? Grab the variable Step = StepE.Var; |