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

References

lib/Transforms/InstCombine/InstCombineCompares.cpp
 3706     A = BO0->getOperand(0);
 3716   if ((A == Op1 || B == Op1) && NoOp0WrapProblem)
 3717     return new ICmpInst(Pred, A == Op1 ? B : A,
 3717     return new ICmpInst(Pred, A == Op1 ? B : A,
 3727   if (A && C && (A == C || A == D || B == C || B == D) && NoOp0WrapProblem &&
 3727   if (A && C && (A == C || A == D || B == C || B == D) && NoOp0WrapProblem &&
 3727   if (A && C && (A == C || A == D || B == C || B == D) && NoOp0WrapProblem &&
 3731     if (A == C) {
 3735     } else if (A == D) {
 3741       Y = A;
 3746       Y = A;
 3753   if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLT &&
 3755     return new ICmpInst(CmpInst::ICMP_SLE, A, Op1);
 3758   if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGE &&
 3760     return new ICmpInst(CmpInst::ICMP_SGT, A, Op1);
 3763   if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One()))
 3764     return new ICmpInst(CmpInst::ICMP_SLT, A, Op1);
 3767   if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGT && match(B, m_One()))
 3768     return new ICmpInst(CmpInst::ICMP_SGE, A, Op1);
 3798   if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_ULE && match(B, m_One()))
 3799     return new ICmpInst(CmpInst::ICMP_ULT, A, Op1);
 3802   if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_UGT && match(B, m_One()))
 3803     return new ICmpInst(CmpInst::ICMP_UGE, A, Op1);
 3820   if (A && C && NoOp0WrapProblem && NoOp1WrapProblem &&
 3831             Value *NewAdd = Builder.CreateNSWAdd(A, C3);
 3836             return new ICmpInst(Pred, A, NewAdd);
 3843   A = nullptr;
 3848     A = BO0->getOperand(0);
 3857   if (A == Op1 && NoOp0WrapProblem)
 3865   if (A == Op1 && (Pred == ICmpInst::ICMP_UGT || Pred == ICmpInst::ICMP_ULE))
 3866     return new ICmpInst(Pred, B, A);
 3871   if (A == Op1 && (Pred == ICmpInst::ICMP_UGE || Pred == ICmpInst::ICMP_ULT) &&
 3873     return new ICmpInst(CmpInst::getFlippedStrictnessPredicate(Pred), B, A);
 3881     return new ICmpInst(Pred, A, C);
 3884   if (A && C && A == C && NoOp0WrapProblem && NoOp1WrapProblem)
 3884   if (A && C && A == C && NoOp0WrapProblem && NoOp1WrapProblem)