[InstSimplify] fix typo; NFC

llvm-svn: 302439
This commit is contained in:
Sanjay Patel 2017-05-08 16:35:02 +00:00
parent 2a06263036
commit 6745447753
1 changed files with 1 additions and 1 deletions

View File

@ -1536,7 +1536,7 @@ static Value *simplifyAndOrOfICmpsWithConstants(ICmpInst *Cmp0, ICmpInst *Cmp1,
auto Range0 = ConstantRange::makeExactICmpRegion(Cmp0->getPredicate(), *C0);
auto Range1 = ConstantRange::makeExactICmpRegion(Cmp1->getPredicate(), *C1);
// For and-of-comapares, check if the intersection is empty:
// For and-of-compares, check if the intersection is empty:
// (icmp X, C0) && (icmp X, C1) --> empty set --> false
if (IsAnd && Range0.intersectWith(Range1).isEmptySet())
return getFalse(Cmp0->getType());