From 10ed96bf094170f12a49ea5e6be2c43ac8640a18 Mon Sep 17 00:00:00 2001 From: Michael Zolotukhin Date: Thu, 23 Apr 2015 22:55:48 +0000 Subject: [PATCH] Fix comment for NoCommonBits. Maybe there is a better wording, but at least it should be technically correct now. llvm-svn: 235660 --- llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp b/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp index 69690b3..62ba50e 100644 --- a/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp +++ b/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp @@ -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. -- 2.7.4