diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2016-06-06 01:51:23 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2016-06-06 01:51:23 +0000 |
commit | bfad015559036f7b96c1ac930e8c673679f50d91 (patch) | |
tree | 47ab37bf338253913cede4d13d8294b52895e604 /llvm/lib/IR/ConstantRange.cpp | |
parent | f5fe079e03c82510011d3802487edd1d9134c674 (diff) | |
download | bcm5719-llvm-bfad015559036f7b96c1ac930e8c673679f50d91.tar.gz bcm5719-llvm-bfad015559036f7b96c1ac930e8c673679f50d91.zip |
Fix spelling and capitalization in comments. NFC
llvm-svn: 271862
Diffstat (limited to 'llvm/lib/IR/ConstantRange.cpp')
-rw-r--r-- | llvm/lib/IR/ConstantRange.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/ConstantRange.cpp b/llvm/lib/IR/ConstantRange.cpp index a202a2ebe35..63bfb89ee95 100644 --- a/llvm/lib/IR/ConstantRange.cpp +++ b/llvm/lib/IR/ConstantRange.cpp @@ -590,7 +590,7 @@ ConstantRange ConstantRange::truncate(uint32_t DstTySize) const { // We use the non-wrapped set code to analyze the [Lower, MaxValue) part, and // then we do the union with [MaxValue, Upper) if (isWrappedSet()) { - // if Upper is greater than Max Value, it covers the whole truncated range. + // If Upper is greater than Max Value, it covers the whole truncated range. if (Upper.uge(MaxValue)) return ConstantRange(DstTySize, /*isFullSet=*/true); @@ -614,7 +614,7 @@ ConstantRange ConstantRange::truncate(uint32_t DstTySize) const { return ConstantRange(LowerDiv.trunc(DstTySize), UpperDiv.trunc(DstTySize)).unionWith(Union); - // The truncated value wrapps around. Check if we can do better than fullset. + // The truncated value wraps around. Check if we can do better than fullset. APInt UpperModulo = UpperDiv - MaxBitValue; if (UpperModulo.ult(LowerDiv)) return ConstantRange(LowerDiv.trunc(DstTySize), |