Skip to content

Commit 10254d4

Browse files
committed
[SimplifyCFG] Fix comments. NFC.
1 parent a9be6d4 commit 10254d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5228,9 +5228,8 @@ bool SimplifyCFGOpt::simplifyBranchOnICmpChain(BranchInst *BI,
52285228
CompVal, DL.getIntPtrType(CompVal->getType()), "magicptr");
52295229
}
52305230

5231-
// Check if we can represent the values can be represented as a contiguous
5232-
// range. If so, we use a range check + conditional branch instead of a
5233-
// switch.
5231+
// Check if we can represent the values as a contiguous range. If so, we use a
5232+
// range check + conditional branch instead of a switch.
52345233
if (Values.front()->getValue() - Values.back()->getValue() ==
52355234
Values.size() - 1) {
52365235
ConstantRange RangeToCheck = ConstantRange::getNonEmpty(

0 commit comments

Comments
 (0)