aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorWojciech Matyjewicz <wmatyjewicz@fastmail.fm>2008-07-20 15:55:14 +0000
committerWojciech Matyjewicz <wmatyjewicz@fastmail.fm>2008-07-20 15:55:14 +0000
commit961b34c0aae8341f699ce9f510e1ee909a4b4e7d (patch)
tree3b5d9ec1f33c87da491d11462800a095a1830a1f /lib/Support/APInt.cpp
parent229762e085122d42a739a0a8ed2f100a2b75c861 (diff)
downloadexternal_llvm-961b34c0aae8341f699ce9f510e1ee909a4b4e7d.zip
external_llvm-961b34c0aae8341f699ce9f510e1ee909a4b4e7d.tar.gz
external_llvm-961b34c0aae8341f699ce9f510e1ee909a4b4e7d.tar.bz2
Fix PR2088. Use modulo linear equation solver to compute loop iteration
count. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APInt.cpp')
-rw-r--r--lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index b0577b3..167d569 100644
--- a/lib/Support/APInt.cpp
+++ b/lib/Support/APInt.cpp
@@ -1466,7 +1466,7 @@ APInt APInt::multiplicativeInverse(const APInt& modulo) const {
// The next-to-last t is the multiplicative inverse. However, we are
// interested in a positive inverse. Calcuate a positive one from a negative
// one if necessary. A simple addition of the modulo suffices because
- // abs(t[i]) is known to less than *this/2 (see the link above).
+ // abs(t[i]) is known to be less than *this/2 (see the link above).
return t[i].isNegative() ? t[i] + modulo : t[i];
}