diff options
Diffstat (limited to 'llvm/lib/Analysis/LoopDependenceAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoopDependenceAnalysis.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp index 10a6a8e..eb8ea0e 100644 --- a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp @@ -144,9 +144,8 @@ LoopDependenceAnalysis::DependenceResult  LoopDependenceAnalysis::analyseZIV(const SCEV *A,                                     const SCEV *B,                                     Subscript *S) const { -  assert(isZIVPair(A, B)); -  const SCEV *diff = SE->getMinusSCEV(A, B); -  return diff->isZero() ? Dependent : Independent; +  assert(isZIVPair(A, B) && "Attempted to ZIV-test non-ZIV SCEVs!"); +  return A == B ? Dependent : Independent;  }  LoopDependenceAnalysis::DependenceResult  | 
