mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
InstCombine: Fix typo in comment for visitICmpInstWithInstAndIntCst
llvm-svn: 185916
This commit is contained in:
parent
3bb8099e6d
commit
f8f57aad0a
@ -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