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

References

lib/Transforms/InstCombine/InstCombineCompares.cpp
 3710     C = BO1->getOperand(0);
 3722   if ((C == Op0 || D == Op0) && NoOp1WrapProblem)
 3724                         C == Op0 ? D : C);
 3724                         C == Op0 ? D : C);
 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) {
 3738       Z = C;
 3739     } else if (B == C) {
 3747       Z = C;
 3771   if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SGT &&
 3773     return new ICmpInst(CmpInst::ICMP_SGE, Op0, C);
 3776   if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SLE &&
 3778     return new ICmpInst(CmpInst::ICMP_SLT, Op0, C);
 3781   if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SGE && match(D, m_One()))
 3782     return new ICmpInst(CmpInst::ICMP_SGT, Op0, C);
 3785   if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SLT && match(D, m_One()))
 3786     return new ICmpInst(CmpInst::ICMP_SLE, Op0, C);
 3806   if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_UGE && match(D, m_One()))
 3807     return new ICmpInst(CmpInst::ICMP_UGT, Op0, C);
 3810   if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_ULT && match(D, m_One()))
 3811     return new ICmpInst(CmpInst::ICMP_ULE, Op0, C);
 3820   if (A && C && NoOp0WrapProblem && NoOp1WrapProblem &&
 3832             return new ICmpInst(Pred, NewAdd, C);
 3835             Value *NewAdd = Builder.CreateNSWAdd(C, C3);
 3845   C = nullptr;
 3852     C = BO1->getOperand(0);
 3860   if (C == Op0 && NoOp1WrapProblem)
 3868   if (C == Op0 && (Pred == ICmpInst::ICMP_ULT || Pred == ICmpInst::ICMP_UGE))
 3869     return new ICmpInst(Pred, C, D);
 3875   if (C == Op0 && (Pred == ICmpInst::ICMP_ULE || Pred == ICmpInst::ICMP_UGT) &&
 3877     return new ICmpInst(CmpInst::getFlippedStrictnessPredicate(Pred), C, D);
 3881     return new ICmpInst(Pred, A, C);
 3884   if (A && C && A == C && NoOp0WrapProblem && NoOp1WrapProblem)
 3884   if (A && C && A == C && NoOp0WrapProblem && NoOp1WrapProblem)