[llvm-commits] [llvm] r126645 - /llvm/trunk/lib/Analysis/ValueTracking.cpp

Nick Lewycky nicholas at mxc.ca
Mon Feb 28 01:18:11 PST 2011


Author: nicholas
Date: Mon Feb 28 03:18:11 2011
New Revision: 126645

URL: http://llvm.org/viewvc/llvm-project?rev=126645&view=rev
Log:
Fix comment.

Modified:
    llvm/trunk/lib/Analysis/ValueTracking.cpp

Modified: llvm/trunk/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ValueTracking.cpp?rev=126645&r1=126644&r2=126645&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/ValueTracking.cpp Mon Feb 28 03:18:11 2011
@@ -685,7 +685,7 @@
       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);





More information about the llvm-commits mailing list