summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2015-04-23 22:55:48 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2015-04-23 22:55:48 +0000
commit10ed96bf094170f12a49ea5e6be2c43ac8640a18 (patch)
tree8bcafe3940927da7af9375b1be0a950cba5a23fb /llvm/lib/Transforms
parentfefcfffe68ac76b5c425b640a59ae0f4e24b5a20 (diff)
downloadbcm5719-llvm-10ed96bf094170f12a49ea5e6be2c43ac8640a18.tar.gz
bcm5719-llvm-10ed96bf094170f12a49ea5e6be2c43ac8640a18.zip
Fix comment for NoCommonBits.
Maybe there is a better wording, but at least it should be technically correct now. llvm-svn: 235660
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp b/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
index 69690b358f5..62ba50e83df 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.
OpenPOWER on IntegriCloud