diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2011-02-28 09:18:11 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2011-02-28 09:18:11 +0000 |
| commit | afe4a3062d083c9f1b7078a139007e4040b46162 (patch) | |
| tree | 3c9ea8cb918ebfece080decf8397d848b5329c43 /llvm/lib/Analysis/ValueTracking.cpp | |
| parent | 66f4f22f7b1a12ad3ced32867d76e1b02074c72b (diff) | |
| download | llvm-afe4a3062d083c9f1b7078a139007e4040b46162.zip llvm-afe4a3062d083c9f1b7078a139007e4040b46162.tar.gz llvm-afe4a3062d083c9f1b7078a139007e4040b46162.tar.bz2 | |
Fix comment.
llvm-svn: 126645
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 7e20869..82f4f64 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/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); |
