Lines Matching refs:LHSCC

595                                              ICmpInst::Predicate &LHSCC,  in foldLogOpOfMaskedICmpsHelper()  argument
611 if (decomposeBitTestICmp(LHS, LHSCC, L11, L12, L2)) { in foldLogOpOfMaskedICmpsHelper()
635 if (!ICmpInst::isEquality(LHSCC)) in foldLogOpOfMaskedICmpsHelper()
698 unsigned left_type = getTypeOfMaskedICmp(A, B, C, LHSCC); in foldLogOpOfMaskedICmpsHelper()
708 ICmpInst::Predicate LHSCC = LHS->getPredicate(), RHSCC = RHS->getPredicate(); in foldLogOpOfMaskedICmps() local
710 LHSCC, RHSCC); in foldLogOpOfMaskedICmps()
712 assert(ICmpInst::isEquality(LHSCC) && ICmpInst::isEquality(RHSCC) && in foldLogOpOfMaskedICmps()
808 if (LHSCC != NEWCC) in foldLogOpOfMaskedICmps()
883 ICmpInst::Predicate LHSCC = LHS->getPredicate(), RHSCC = RHS->getPredicate(); in FoldAndOfICmps() local
886 if (PredicatesFoldable(LHSCC, RHSCC)) { in FoldAndOfICmps()
917 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps()
920 if (LHSCC == ICmpInst::ICMP_ULT && in FoldAndOfICmps()
923 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()
927 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero()) { in FoldAndOfICmps()
929 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()
936 if (LHSCC == ICmpInst::ICMP_EQ && LHSCC == RHSCC && in FoldAndOfICmps()
963 return Builder->CreateICmp(LHSCC, NewAnd, NewVal); in FoldAndOfICmps()
973 if (LHSCC == ICmpInst::ICMP_UGE || LHSCC == ICmpInst::ICMP_ULE || in FoldAndOfICmps()
975 LHSCC == ICmpInst::ICMP_SGE || LHSCC == ICmpInst::ICMP_SLE || in FoldAndOfICmps()
982 ConstantRange::makeAllowedICmpRegion(LHSCC, LHSCst->getValue()); in FoldAndOfICmps()
990 if (!PredicatesFoldable(LHSCC, RHSCC)) in FoldAndOfICmps()
995 if (CmpInst::isSigned(LHSCC) || in FoldAndOfICmps()
996 (ICmpInst::isEquality(LHSCC) && in FoldAndOfICmps()
1005 std::swap(LHSCC, RHSCC); in FoldAndOfICmps()
1016 switch (LHSCC) { in FoldAndOfICmps()
1094 return Builder->CreateICmp(LHSCC, Val, RHSCst); in FoldAndOfICmps()
1112 return Builder->CreateICmp(LHSCC, Val, RHSCst); in FoldAndOfICmps()
1693 ICmpInst::Predicate LHSCC = LHS->getPredicate(), RHSCC = RHS->getPredicate(); in FoldOrOfICmps() local
1743 if ((LHSCC == ICmpInst::ICMP_ULT || LHSCC == ICmpInst::ICMP_ULE) && in FoldOrOfICmps()
1744 LHSCC == RHSCC && LHSCst && RHSCst && LHS->hasOneUse() && in FoldOrOfICmps()
1788 if (PredicatesFoldable(LHSCC, RHSCC)) { in FoldOrOfICmps()
1811 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst && LHSCst->isZero()) { in FoldOrOfICmps()
1822 if (LHSCC == ICmpInst::ICMP_ULT && Val2 == LHS->getOperand(1)) in FoldOrOfICmps()
1824 else if (LHSCC == ICmpInst::ICMP_UGT && Val2 == Val) in FoldOrOfICmps()
1844 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldOrOfICmps()
1846 if (LHSCC == ICmpInst::ICMP_NE && LHSCst->isZero()) { in FoldOrOfICmps()
1848 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldOrOfICmps()
1854 if (LHSCC == ICmpInst::ICMP_ULT && RHSCC == ICmpInst::ICMP_EQ) { in FoldOrOfICmps()
1866 if (LHSCC == ICmpInst::ICMP_UGE || LHSCC == ICmpInst::ICMP_ULE || in FoldOrOfICmps()
1868 LHSCC == ICmpInst::ICMP_SGE || LHSCC == ICmpInst::ICMP_SLE || in FoldOrOfICmps()
1873 if (!PredicatesFoldable(LHSCC, RHSCC)) in FoldOrOfICmps()
1878 if (CmpInst::isSigned(LHSCC) || in FoldOrOfICmps()
1879 (ICmpInst::isEquality(LHSCC) && in FoldOrOfICmps()
1888 std::swap(LHSCC, RHSCC); in FoldOrOfICmps()
1899 switch (LHSCC) { in FoldOrOfICmps()