mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
InstCombine: Fix typo in comment for visitICmpInstWithInstAndIntCst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fecf0d7a01
commit
fcb7b97892
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user