aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2014-05-14 08:00:07 +0000
committerJay Foad <jay.foad@gmail.com>2014-05-14 08:00:07 +0000
commite48d9e8efef3607506b519f7fc28819130dbde24 (patch)
treedac942567f3b0f59a79dab01ab2f6d6168a33d51 /llvm/lib/Analysis/ValueTracking.cpp
parent2976f8b011a0845f1b0865150036cf3f48a61cbf (diff)
downloadllvm-e48d9e8efef3607506b519f7fc28819130dbde24.zip
llvm-e48d9e8efef3607506b519f7fc28819130dbde24.tar.gz
llvm-e48d9e8efef3607506b519f7fc28819130dbde24.tar.bz2
Update the comments for ComputeMaskedBits, which lost its Mask parameter
in r154011. llvm-svn: 208757
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 07720d7..e684dc8 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/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!