[llvm] r271862 - Fix spelling and capitalization in comments. NFC
Nick Lewycky via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 5 18:51:24 PDT 2016
Author: nicholas
Date: Sun Jun 5 20:51:23 2016
New Revision: 271862
URL: http://llvm.org/viewvc/llvm-project?rev=271862&view=rev
Log:
Fix spelling and capitalization in comments. NFC
Modified:
llvm/trunk/lib/IR/ConstantRange.cpp
Modified: llvm/trunk/lib/IR/ConstantRange.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/ConstantRange.cpp?rev=271862&r1=271861&r2=271862&view=diff
==============================================================================
--- llvm/trunk/lib/IR/ConstantRange.cpp (original)
+++ llvm/trunk/lib/IR/ConstantRange.cpp Sun Jun 5 20:51:23 2016
@@ -590,7 +590,7 @@ ConstantRange ConstantRange::truncate(ui
// 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(ui
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),
More information about the llvm-commits
mailing list