summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMingjie Xing <mingjie.xing@gmail.com>2014-01-07 01:54:16 +0000
committerMingjie Xing <mingjie.xing@gmail.com>2014-01-07 01:54:16 +0000
commit9deac1b7c2731eca2513c886611db5c3ee1b97ea (patch)
treed1a383330c1379d7c8cb04cc5319cdc2bb28cd32 /llvm/lib
parent3c0ed08996d8347fd18a8fe78caf1aac74c44379 (diff)
downloadbcm5719-llvm-9deac1b7c2731eca2513c886611db5c3ee1b97ea.tar.gz
bcm5719-llvm-9deac1b7c2731eca2513c886611db5c3ee1b97ea.zip
Fix comment of findGCD.
llvm-svn: 198660
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/DependenceAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp
index 3b3e2ef155a..f152aeb9de7 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) {
OpenPOWER on IntegriCloud