aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-02-28 09:18:11 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-02-28 09:18:11 +0000
commitda834093b73ff67ede909f2ac616e0703ac6ce8e (patch)
tree189e8b65d306e6faa2c7f53df2782f442144bc32 /lib/Analysis
parent3dc7e49c70726cb47829fb892938ff75a9c9e626 (diff)
downloadexternal_llvm-da834093b73ff67ede909f2ac616e0703ac6ce8e.zip
external_llvm-da834093b73ff67ede909f2ac616e0703ac6ce8e.tar.gz
external_llvm-da834093b73ff67ede909f2ac616e0703ac6ce8e.tar.bz2
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp
index 7e20869..82f4f64 100644
--- a/lib/Analysis/ValueTracking.cpp
+++ b/lib/Analysis/ValueTracking.cpp
@@ -685,7 +685,7 @@ bool llvm::isPowerOfTwo(Value *V, const TargetData *TD, unsigned Depth) {
isPowerOfTwo(SI->getFalseValue(), TD, Depth);
// An exact divide or right shift can only shift off zero bits, so the result
- // is non-zero only if the first operand is non-zero.
+ // is a power of two only if the first operand is a power of two.
if (match(V, m_Shr(m_Value(), m_Value())) ||
match(V, m_IDiv(m_Value(), m_Value()))) {
BinaryOperator *BO = cast<BinaryOperator>(V);