[patch] fix comment on findGCD

Mingjie Xing mingjie.xing at gmail.com
Mon Dec 30 01:23:36 PST 2013


2013/12/30 Mingjie Xing <mingjie.xing at gmail.com>:
> Hello,
>
> This patch fix the comment on findGCD:
>
> Is it OK?
>
> Best Regards,
> Mingjie

Here's the new version:

Index: lib/Analysis/DependenceAnalysis.cpp
===================================================================
--- lib/Analysis/DependenceAnalysis.cpp (revision 198188)
+++ lib/Analysis/DependenceAnalysis.cpp (working copy)
@@ -1275,8 +1275,8 @@
 //
 // 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).
+// Return true if dependence disproved.
 static
 bool findGCD(unsigned Bits, APInt AM, APInt BM, APInt Delta,
              APInt &G, APInt &X, APInt &Y) {

Thanks,
Mingjie



More information about the llvm-commits mailing list