diff options
author | Mingjie Xing <mingjie.xing@gmail.com> | 2014-01-07 01:54:16 +0000 |
---|---|---|
committer | Mingjie Xing <mingjie.xing@gmail.com> | 2014-01-07 01:54:16 +0000 |
commit | 9deac1b7c2731eca2513c886611db5c3ee1b97ea (patch) | |
tree | d1a383330c1379d7c8cb04cc5319cdc2bb28cd32 /llvm/lib/Analysis/DependenceAnalysis.cpp | |
parent | 3c0ed08996d8347fd18a8fe78caf1aac74c44379 (diff) | |
download | llvm-9deac1b7c2731eca2513c886611db5c3ee1b97ea.zip llvm-9deac1b7c2731eca2513c886611db5c3ee1b97ea.tar.gz llvm-9deac1b7c2731eca2513c886611db5c3ee1b97ea.tar.bz2 |
Fix comment of findGCD.
llvm-svn: 198660
Diffstat (limited to 'llvm/lib/Analysis/DependenceAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/DependenceAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp index 3b3e2ef..f152aeb 100644 --- a/llvm/lib/Analysis/DependenceAnalysis.cpp +++ b/llvm/lib/Analysis/DependenceAnalysis.cpp @@ -1275,8 +1275,8 @@ bool DependenceAnalysis::weakCrossingSIVtest(const SCEV *Coeff, // // Program 2.1, page 29. // Computes the GCD of AM and BM. -// Also finds a solution to the equation ax - by = gdc(a, b). -// Returns true iff the gcd divides Delta. +// Also finds a solution to the equation ax - by = gcd(a, b). +// Returns true if dependence disproved; i.e., gcd does not divide Delta. static bool findGCD(unsigned Bits, APInt AM, APInt BM, APInt Delta, APInt &G, APInt &X, APInt &Y) { |