summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-05-08 16:35:02 +0000
committerSanjay Patel <spatel@rotateright.com>2017-05-08 16:35:02 +0000
commit6745447753302cd0aaec01402518a1bfb9b485b4 (patch)
tree86234802755de938500048c2ce15e5bfcaa6796d /llvm/lib/Analysis
parent2a0626303676920d7d9f47a62790cd2e31348f40 (diff)
downloadbcm5719-llvm-6745447753302cd0aaec01402518a1bfb9b485b4.tar.gz
bcm5719-llvm-6745447753302cd0aaec01402518a1bfb9b485b4.zip
[InstSimplify] fix typo; NFC
llvm-svn: 302439
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 66a1e745171..de16e42f766 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -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());
OpenPOWER on IntegriCloud