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

References

lib/Transforms/InstCombine/InstCombineCompares.cpp
 3673   BinaryOperator *BO1 = dyn_cast<BinaryOperator>(Op1);
 3682   if (match(Op0, m_OneUse(m_c_Add(m_Specific(Op1), m_Value(X)))) &&
 3684     return new ICmpInst(Pred, Builder.CreateNot(Op1), X);
 3686   if (match(Op1, m_OneUse(m_c_Add(m_Specific(Op0), m_Value(X)))) &&
 3716   if ((A == Op1 || B == Op1) && NoOp0WrapProblem)
 3716   if ((A == Op1 || B == Op1) && NoOp0WrapProblem)
 3717     return new ICmpInst(Pred, A == Op1 ? B : A,
 3718                         Constant::getNullValue(Op1->getType()));
 3755     return new ICmpInst(CmpInst::ICMP_SLE, A, Op1);
 3760     return new ICmpInst(CmpInst::ICMP_SGT, A, Op1);
 3764     return new ICmpInst(CmpInst::ICMP_SLT, A, Op1);
 3768     return new ICmpInst(CmpInst::ICMP_SGE, A, Op1);
 3799     return new ICmpInst(CmpInst::ICMP_ULT, A, Op1);
 3803     return new ICmpInst(CmpInst::ICMP_UGE, A, Op1);
 3857   if (A == Op1 && NoOp0WrapProblem)
 3858     return new ICmpInst(Pred, Constant::getNullValue(Op1->getType()), B);
 3865   if (A == Op1 && (Pred == ICmpInst::ICMP_UGT || Pred == ICmpInst::ICMP_ULE))
 3871   if (A == Op1 && (Pred == ICmpInst::ICMP_UGE || Pred == ICmpInst::ICMP_ULT) &&
 3891       if (Constant *RHSC = dyn_cast<Constant>(Op1))
 3899   if (BO0 && BO0->getOpcode() == Instruction::SRem && Op1 == BO0->getOperand(1))
 4010     auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes());
 4015       return new ICmpInst(ICmpInst::ICMP_NE, Op1, Zero);