Lines Matching refs:hasOneUse

753           (GEPLHS->hasAllConstantIndices() || GEPLHS->hasOneUse()) &&  in foldGEPICmp()
754 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in foldGEPICmp()
1076 if (!AddWithCst->hasOneUse()) in processUGT_ADDCST_ADD()
1375 if (Cmp.hasOneUse() && in foldICmpWithDominatingICmp()
1452 if (Cmp.isEquality() && Trunc->hasOneUse()) { in foldICmpTruncConstant()
1518 (!Cmp.getOperand(0)->hasOneUse() || !Cmp.getOperand(1)->hasOneUse())) in foldICmpTruncWithTruncOrExt()
1588 if (Xor->hasOneUse()) { in foldICmpXorConstant()
1727 if (Shift->hasOneUse() && C1.isZero() && Cmp.isEquality() && in foldICmpAndShift()
1761 if (!And->hasOneUse()) in foldICmpAndConstConst()
1819 if (!Cmp.isSigned() && C1.isZero() && And->getOperand(0)->hasOneUse() && in foldICmpAndConstConst()
1827 if (And->hasOneUse()) in foldICmpAndConstConst()
1829 if (Or->hasOneUse()) in foldICmpAndConstConst()
1831 if (LShr->hasOneUse()) in foldICmpAndConstConst()
1935 if (C.isZero() && (Pred == CmpInst::ICMP_EQ || And->hasOneUse())) { in foldICmpAndConstant()
2075 if (Or->hasOneUse()) { in foldICmpOrConstant()
2117 if (!Cmp.isEquality() || !C.isZero() || !Or->hasOneUse()) in foldICmpOrConstant()
2370 if (Cmp.isEquality() && Shl->hasOneUse()) { in foldICmpShlConstant()
2382 if (Shl->hasOneUse() && isSignBitCheck(Pred, C, TrueIfSigned)) { in foldICmpShlConstant()
2393 if (Cmp.isUnsigned() && Shl->hasOneUse()) { in foldICmpShlConstant()
2420 if (Shl->hasOneUse() && Amt != 0 && in foldICmpShlConstant()
2514 if (IsAShr && Shr->hasOneUse()) { in foldICmpShrConstant()
2607 if (Shr->hasOneUse()) { in foldICmpShrConstant()
2633 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2720 if (Cmp.isEquality() && Div->hasOneUse() && C.isSignBitSet() && in foldICmpDivConstant()
2926 if (!Sub->hasOneUse()) in foldICmpSubConstant()
3051 createLogicFromTable(Table, Op0, Op1, Builder, Add->hasOneUse())) in foldICmpAddConstant()
3123 if (!Add->hasOneUse()) in foldICmpAddConstant()
3224 if (Cmp.hasOneUse() && in foldICmpSelectConstant()
3306 if (match(Op1, m_APInt(C)) && Bitcast->hasOneUse()) { in foldICmpBitCast()
3361 if (Cmp.isEquality() && C->isAllOnes() && Bitcast->hasOneUse()) { in foldICmpBitCast()
3363 getFreelyInverted(BCSrcOp, BCSrcOp->hasOneUse(), &Builder)) { in foldICmpBitCast()
3373 if (Cmp.isEquality() && C->isZero() && Bitcast->hasOneUse() && in foldICmpBitCast()
3443 if (C->isZero() && Cmp.isEquality() && Cmp0->hasOneUse() && in foldICmpInstWithConstant()
3476 if (C.isZero() && BO->hasOneUse()) { in foldICmpBinOpEqualityWithConstant()
3490 if (BO->hasOneUse()) in foldICmpBinOpEqualityWithConstant()
3499 if (BO->hasOneUse()) { in foldICmpBinOpEqualityWithConstant()
3524 if (match(BOp1, m_APInt(BOC)) && BO->hasOneUse() && RHS->isAllOnesValue()) { in foldICmpBinOpEqualityWithConstant()
3546 else if (BO->hasOneUse()) { in foldICmpBinOpEqualityWithConstant()
3575 if (!CtpopLhs->hasOneUse()) in foldCtpopPow2Test()
3643 if (Num != BitWidth && II->hasOneUse()) { in foldICmpEqIntrinsicWithConstant()
3686 if (C.isZero() && II->hasOneUse()) { in foldICmpEqIntrinsicWithConstant()
3749 unsigned OneUses = IIOp0->hasOneUse() + IIOp1->hasOneUse(); in foldICmpIntrinsicWithIntrinsic()
3857 if (!II->hasOneUse()) in foldICmpUSubSatOrUAddSatWithConstant()
4048 if (!II->hasOneUse()) in foldICmpIntrinsicWithConstant()
4161 if (SI->hasOneUse()) in foldSelectICmp()
4371 IC.getFreelyInverted(X, X->hasOneUse(), &IC.Builder)) { in foldICmpWithLowBitMaskedVal()
4389 IC.getFreelyInverted(M, M->hasOneUse(), &IC.Builder)) { in foldICmpWithLowBitMaskedVal()
4496 !I.getOperand(0)->hasOneUse()) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
4549 if (!MaybeTruncation->hasOneUse() && in foldShiftIntoShiftInAnotherHandOfAndInICmp()
4550 !NarrowestShift->getOperand(1)->hasOneUse()) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
4708 bool MulHadOtherUses = Mul && !Mul->hasOneUse(); in foldMultiplicationOverflowCheck()
4790 if (ICmpInst::isEquality(Pred) && Op0->hasOneUse()) { in foldICmpAndXX()
4800 if (auto *NotA = IC.getFreelyInverted(A, A->hasOneUse(), &IC.Builder)) in foldICmpAndXX()
4852 if (ICmpInst::isEquality(Pred) && Op0->hasOneUse()) { in foldICmpOrXX()
4859 if (Value *NotA = IC.getFreelyInverted(A, A->hasOneUse(), &IC.Builder)) in foldICmpOrXX()
5104 (BO0->hasOneUse() || BO1->hasOneUse()) && !I.isUnsigned()) { in foldICmpBinOp()
5258 (BO0->hasOneUse() || BO1->hasOneUse()) && in foldICmpBinOp()
5585 Op1->hasOneUse()) { in foldICmpEquality()
5644 int(Op0->hasOneUse()) + int(Op1->hasOneUse()) + in foldICmpEquality()
5669 (Op0->hasOneUse() || Op1->hasOneUse())) { in foldICmpEquality()
5716 if (Op0->hasOneUse() && in foldICmpEquality()
5721 !A->hasOneUse()) { in foldICmpEquality()
5748 (I.getOperand(0)->hasOneUse() || I.getOperand(1)->hasOneUse())) { in foldICmpEquality()
5925 if (!ICmp.getOperand(0)->hasOneUse() && !ICmp.getOperand(1)->hasOneUse()) in foldICmpWithZextOrSext()
6494 if (!Cmp.hasOneUse()) in foldICmpUsingKnownBits()
6720 bool HasOneUse = ExtI->hasOneUse() && ExtI->getOperand(0)->hasOneUse(); in foldICmpUsingBoolRange()
7041 (LHS->hasOneUse() || RHS->hasOneUse())) in foldVectorCmp()
7045 if (LHS->hasOneUse() && isSplatValue(RHS)) in foldVectorCmp()
7061 V1Ty == V2->getType() && (LHS->hasOneUse() || RHS->hasOneUse())) { in foldVectorCmp()
7070 if (!LHS->hasOneUse() || !match(RHS, m_Constant(C))) in foldVectorCmp()
7369 if (I.hasOneUse()) in visitICmpInst()
7453 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitICmpInst()
7499 if (isFreeToInvert(Op0, Op0->hasOneUse(), ConsumesOp0) && in visitICmpInst()
7500 isFreeToInvert(Op1, Op1->hasOneUse(), ConsumesOp1) && in visitICmpInst()
7502 Value *InvOp0 = getFreelyInverted(Op0, Op0->hasOneUse(), &Builder); in visitICmpInst()
7503 Value *InvOp1 = getFreelyInverted(Op1, Op1->hasOneUse(), &Builder); in visitICmpInst()
7542 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitICmpInst()
8130 if (I.hasOneUse()) in visitFCmpInst()
8223 if (LHSI->hasOneUse()) in visitFCmpInst()