diff options
author | Jay Foad <jay.foad@gmail.com> | 2014-05-14 08:00:07 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2014-05-14 08:00:07 +0000 |
commit | 5fa4d1cd1abda014d687ce36b8ff90e0626429fd (patch) | |
tree | 29f0d2e8430f4cc3cf6629319fb65538b9db8cc2 /lib/Analysis | |
parent | b8236e532a9bc5e0c6684a0b51f808d4754272bd (diff) | |
download | llvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.gz llvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.bz2 llvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.xz |
Update the comments for ComputeMaskedBits, which lost its Mask parameter
in r154011.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/ValueTracking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index 07720d78bf..e684dc86e9 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/lib/Analysis/ValueTracking.cpp @@ -211,7 +211,7 @@ void llvm::computeMaskedBitsLoad(const MDNode &Ranges, APInt &KnownZero) { KnownZero = APInt::getHighBitsSet(BitWidth, MinLeadingZeros); } -/// ComputeMaskedBits - Determine which of the bits are known to be either zero +/// ComputeMaskedBits - Determine which bits of V are known to be either zero /// or one and return them in the KnownZero/KnownOne bit sets. /// /// NOTE: we cannot consider 'undef' to be "IsZero" here. The problem is that @@ -241,7 +241,7 @@ void llvm::ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, V->getType()->getScalarSizeInBits() == BitWidth) && KnownZero.getBitWidth() == BitWidth && KnownOne.getBitWidth() == BitWidth && - "V, Mask, KnownOne and KnownZero should have same BitWidth"); + "V, KnownOne and KnownZero should have same BitWidth"); if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { // We know all of the bits for a constant! |