[llvm] r235660 - Fix comment for NoCommonBits.

Michael Zolotukhin mzolotukhin at apple.com
Thu Apr 23 15:55:50 PDT 2015


Author: mzolotukhin
Date: Thu Apr 23 17:55:48 2015
New Revision: 235660

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

Maybe there is a better wording, but at least it should be technically
correct now.

Modified:
    llvm/trunk/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp?rev=235660&r1=235659&r2=235660&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp Thu Apr 23 17:55:48 2015
@@ -276,7 +276,8 @@ class ConstantOffsetExtractor {
   /// returns "sext i32 (zext i16 V to i32) to i64".
   Value *applyExts(Value *V);
 
-  /// Returns true if LHS and RHS have no bits in common, i.e., LHS | RHS == 0.
+  /// Returns true if LHS and RHS have no bits in common, i.e., for every n
+  /// the n-th bit of either LHS, or RHS is 0.
   bool NoCommonBits(Value *LHS, Value *RHS) const;
   /// Computes which bits are known to be one or zero.
   /// \p KnownOne Mask of all bits that are known to be one.





More information about the llvm-commits mailing list