From: David Majnemer Date: Tue, 9 Jul 2013 09:24:35 +0000 (+0000) Subject: InstCombine: Fix typo in comment for visitICmpInstWithInstAndIntCst X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fcb7b97892dad5bc6ae55f513f8a111563078996;p=oota-llvm.git InstCombine: Fix typo in comment for visitICmpInstWithInstAndIntCst git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185916 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index 8ac0e3fd470..c0225ae096a 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -1547,7 +1547,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Builder->CreateOr(LHSI->getOperand(1), RHSV - 1), LHSC); - // C1-X >u C2 -> (X|C2) == C1 + // C1-X >u C2 -> (X|C2) != C1 // iff C1 & C2 == C2 // C2+1 is a power of 2 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && LHSI->hasOneUse() && @@ -1594,7 +1594,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Builder->CreateAnd(LHSI->getOperand(0), -RHSV), ConstantExpr::getNeg(LHSC)); - // X-C1 >u C2 -> (X & ~C2) == C1 + // X-C1 >u C2 -> (X & ~C2) != C1 // iff C1 & C2 == 0 // C2+1 is a power of 2 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && LHSI->hasOneUse() &&