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

References

lib/Transforms/InstCombine/InstCombineCompares.cpp
 2503   if (match(X, m_APInt(C2)) && *C2 == C && Cmp.isEquality())
 2511       !subWithOverflow(SubResult, *C2, C, Cmp.isSigned()))
 2522     if (Pred == ICmpInst::ICMP_SGT && C.isAllOnesValue())
 2526     if (Pred == ICmpInst::ICMP_SGT && C.isNullValue())
 2530     if (Pred == ICmpInst::ICMP_SLT && C.isNullValue())
 2534     if (Pred == ICmpInst::ICMP_SLT && C.isOneValue())
 2543   if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() &&
 2544       (*C2 & (C - 1)) == (C - 1))
 2544       (*C2 & (C - 1)) == (C - 1))
 2545     return new ICmpInst(ICmpInst::ICMP_EQ, Builder.CreateOr(Y, C - 1), X);
 2549   if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C)
 2549   if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C)
 2549   if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C)
 2550     return new ICmpInst(ICmpInst::ICMP_NE, Builder.CreateOr(Y, C), X);