diff options
Diffstat (limited to 'llvm/lib/Analysis/LoopDependenceAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoopDependenceAnalysis.cpp | 12 | 
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp index 51f6c3a..0c8bbd7 100644 --- a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp @@ -127,7 +127,17 @@ LoopDependenceAnalysis::DependenceResult  LoopDependenceAnalysis::analyseSubscript(const SCEV *A,                                           const SCEV *B,                                           Subscript *S) const { -  return Unknown; // TODO: Implement. +  DEBUG(errs() << "  Testing subscript: " << *A << ", " << *B << "\n"); + +  if (A == B) { +    DEBUG(errs() << "  -> [D] same SCEV\n"); +    return Dependent; +  } + +  // TODO: Implement ZIV/SIV/MIV testers. + +  DEBUG(errs() << "  -> [?] cannot analyse subscript\n"); +  return Unknown;  }  LoopDependenceAnalysis::DependenceResult  | 
