Lines Matching refs:LHSCC

593                                              ICmpInst::Predicate &LHSCC,  in foldLogOpOfMaskedICmpsHelper()  argument
609 if (decomposeBitTestICmp(LHS, LHSCC, L11, L12, L2)) { in foldLogOpOfMaskedICmpsHelper()
633 if (!ICmpInst::isEquality(LHSCC)) in foldLogOpOfMaskedICmpsHelper()
696 unsigned left_type = getTypeOfMaskedICmp(A, B, C, LHSCC); in foldLogOpOfMaskedICmpsHelper()
706 ICmpInst::Predicate LHSCC = LHS->getPredicate(), RHSCC = RHS->getPredicate(); in foldLogOpOfMaskedICmps() local
708 LHSCC, RHSCC); in foldLogOpOfMaskedICmps()
710 assert(ICmpInst::isEquality(LHSCC) && ICmpInst::isEquality(RHSCC) && in foldLogOpOfMaskedICmps()
806 if (LHSCC != NEWCC) in foldLogOpOfMaskedICmps()
881 ICmpInst::Predicate LHSCC = LHS->getPredicate(), RHSCC = RHS->getPredicate(); in FoldAndOfICmps() local
884 if (PredicatesFoldable(LHSCC, RHSCC)) { in FoldAndOfICmps()
915 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps()
918 if (LHSCC == ICmpInst::ICMP_ULT && in FoldAndOfICmps()
921 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()
925 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero()) { in FoldAndOfICmps()
927 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()
934 if (LHSCC == ICmpInst::ICMP_EQ && LHSCC == RHSCC && in FoldAndOfICmps()
961 return Builder->CreateICmp(LHSCC, NewAnd, NewVal); in FoldAndOfICmps()
971 if (LHSCC == ICmpInst::ICMP_UGE || LHSCC == ICmpInst::ICMP_ULE || in FoldAndOfICmps()
973 LHSCC == ICmpInst::ICMP_SGE || LHSCC == ICmpInst::ICMP_SLE || in FoldAndOfICmps()
980 ConstantRange::makeAllowedICmpRegion(LHSCC, LHSCst->getValue()); in FoldAndOfICmps()
988 if (!PredicatesFoldable(LHSCC, RHSCC)) in FoldAndOfICmps()
993 if (CmpInst::isSigned(LHSCC) || in FoldAndOfICmps()
994 (ICmpInst::isEquality(LHSCC) && in FoldAndOfICmps()
1003 std::swap(LHSCC, RHSCC); in FoldAndOfICmps()
1014 switch (LHSCC) { in FoldAndOfICmps()
1092 return Builder->CreateICmp(LHSCC, Val, RHSCst); in FoldAndOfICmps()
1110 return Builder->CreateICmp(LHSCC, Val, RHSCst); in FoldAndOfICmps()
1782 ICmpInst::Predicate LHSCC = LHS->getPredicate(), RHSCC = RHS->getPredicate(); in FoldOrOfICmps() local
1832 if ((LHSCC == ICmpInst::ICMP_ULT || LHSCC == ICmpInst::ICMP_ULE) && in FoldOrOfICmps()
1833 LHSCC == RHSCC && LHSCst && RHSCst && LHS->hasOneUse() && in FoldOrOfICmps()
1877 if (PredicatesFoldable(LHSCC, RHSCC)) { in FoldOrOfICmps()
1900 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst && LHSCst->isZero()) { in FoldOrOfICmps()
1911 if (LHSCC == ICmpInst::ICMP_ULT && Val2 == LHS->getOperand(1)) in FoldOrOfICmps()
1913 else if (LHSCC == ICmpInst::ICMP_UGT && Val2 == Val) in FoldOrOfICmps()
1933 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldOrOfICmps()
1935 if (LHSCC == ICmpInst::ICMP_NE && LHSCst->isZero()) { in FoldOrOfICmps()
1937 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldOrOfICmps()
1943 if (LHSCC == ICmpInst::ICMP_ULT && RHSCC == ICmpInst::ICMP_EQ) { in FoldOrOfICmps()
1955 if (LHSCC == ICmpInst::ICMP_UGE || LHSCC == ICmpInst::ICMP_ULE || in FoldOrOfICmps()
1957 LHSCC == ICmpInst::ICMP_SGE || LHSCC == ICmpInst::ICMP_SLE || in FoldOrOfICmps()
1962 if (!PredicatesFoldable(LHSCC, RHSCC)) in FoldOrOfICmps()
1967 if (CmpInst::isSigned(LHSCC) || in FoldOrOfICmps()
1968 (ICmpInst::isEquality(LHSCC) && in FoldOrOfICmps()
1977 std::swap(LHSCC, RHSCC); in FoldOrOfICmps()
1988 switch (LHSCC) { in FoldOrOfICmps()