reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/InstCombine/InstCombineCompares.cpp
 4967     return new ICmpInst(Pred, ConstantExpr::getIntegerValue(Ty, Op0Min), Op1);
 4968   if (!isa<Constant>(Op1) && Op1Min == Op1Max)
 5035       return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
 5038     if (match(Op1, m_APInt(CmpC))) {
 5042                             ConstantInt::get(Op1->getType(), *CmpC - 1));
 5047                             Constant::getNullValue(Op1->getType()));
 5057       return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
 5060     if (match(Op1, m_APInt(CmpC))) {
 5064                             ConstantInt::get(Op1->getType(), *CmpC + 1));
 5069                             Constant::getNullValue(Op1->getType()));
 5079       return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
 5081     if (match(Op1, m_APInt(CmpC))) {
 5084                             ConstantInt::get(Op1->getType(), *CmpC - 1));
 5094       return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
 5096     if (match(Op1, m_APInt(CmpC))) {
 5099                             ConstantInt::get(Op1->getType(), *CmpC + 1));
 5104     assert(!isa<ConstantInt>(Op1) && "ICMP_SGE with ConstantInt not folded!");
 5110       return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
 5113     assert(!isa<ConstantInt>(Op1) && "ICMP_SLE with ConstantInt not folded!");
 5119       return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
 5122     assert(!isa<ConstantInt>(Op1) && "ICMP_UGE with ConstantInt not folded!");
 5128       return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
 5131     assert(!isa<ConstantInt>(Op1) && "ICMP_ULE with ConstantInt not folded!");
 5137       return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
 5146     return new ICmpInst(I.getUnsignedPredicate(), Op0, Op1);