Lines Matching refs:hasOneUse
916 (GEPLHS->hasAllConstantIndices() || GEPLHS->hasOneUse()) && in foldGEPICmp()
917 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in foldGEPICmp()
996 if (GEPsInBounds && (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) && in foldGEPICmp()
997 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) { in foldGEPICmp()
1252 if (!AddWithCst->hasOneUse()) in processUGT_ADDCST_ADD()
1528 if (Cmp.hasOneUse() && in foldICmpWithDominatingICmp()
1557 if (Cmp.isEquality() && Trunc->hasOneUse()) { in foldICmpTruncConstant()
1620 if (Xor->hasOneUse()) { in foldICmpXorConstant()
1728 if (Shift->hasOneUse() && C1.isNullValue() && Cmp.isEquality() && in foldICmpAndShift()
1762 if (!And->hasOneUse()) in foldICmpAndConstConst()
1815 if (!Cmp.isSigned() && C1.isNullValue() && And->getOperand(0)->hasOneUse() && in foldICmpAndConstConst()
1823 if (And->hasOneUse()) in foldICmpAndConstConst()
1825 if (Or->hasOneUse()) in foldICmpAndConstConst()
1827 if (LShr->hasOneUse()) in foldICmpAndConstConst()
1902 if (And->hasOneUse() && C.isNullValue() && match(Y, m_APInt(C2))) { in foldICmpAndConstant()
1946 if (Or->hasOneUse()) { in foldICmpOrConstant()
1953 if (!Cmp.isEquality() || !C.isNullValue() || !Or->hasOneUse()) in foldICmpOrConstant()
2159 if (Cmp.isEquality() && Shl->hasOneUse()) { in foldICmpShlConstant()
2171 if (Shl->hasOneUse() && isSignBitCheck(Pred, C, TrueIfSigned)) { in foldICmpShlConstant()
2182 if (Cmp.isUnsigned() && Shl->hasOneUse()) { in foldICmpShlConstant()
2209 if (Shl->hasOneUse() && Amt != 0 && C.countTrailingZeros() >= Amt && in foldICmpShlConstant()
2230 if (Cmp.isEquality() && Shr->isExact() && Shr->hasOneUse() && in foldICmpShrConstant()
2329 if (Shr->hasOneUse()) { in foldICmpShrConstant()
2354 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2602 if (!Sub->hasOneUse()) in foldICmpSubConstant()
2709 if (!Add->hasOneUse()) in foldICmpAddConstant()
2794 if (Cmp.hasOneUse() && in foldICmpSelectConstant()
2881 if (match(Op1, m_APInt(C)) && Bitcast->hasOneUse() && in foldICmpBitCast()
3058 if (C.isNullValue() && BO->hasOneUse()) { in foldICmpBinOpEqualityWithConstant()
3070 if (BO->hasOneUse()) in foldICmpBinOpEqualityWithConstant()
3079 if (BO->hasOneUse()) { in foldICmpBinOpEqualityWithConstant()
3088 if (BO->hasOneUse()) { in foldICmpBinOpEqualityWithConstant()
3100 if (BO->hasOneUse()) { in foldICmpBinOpEqualityWithConstant()
3114 if (match(BOp1, m_APInt(BOC)) && BO->hasOneUse() && RHS->isAllOnesValue()) { in foldICmpBinOpEqualityWithConstant()
3177 if (Num != BitWidth && II->hasOneUse()) { in foldICmpEqIntrinsicWithConstant()
3270 if (!II->hasOneUse()) in foldICmpIntrinsicWithConstant()
3359 if (LHSI->hasOneUse()) in foldICmpInstWithConstantNotInt()
3589 !I.getOperand(0)->hasOneUse()) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3642 if (!MaybeTruncation->hasOneUse() && in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3643 !NarrowestShift->getOperand(1)->hasOneUse()) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3790 bool MulHadOtherUses = Mul && !Mul->hasOneUse(); in foldUnsignedMultiplicationOverflowCheck()
3994 (BO0->hasOneUse() || BO1->hasOneUse()) && !I.isUnsigned()) in foldICmpBinOp()
4116 if (BO0 && BO1 && BO0->getOpcode() == BO1->getOpcode() && BO0->hasOneUse() && in foldICmpBinOp()
4117 BO1->hasOneUse() && BO0->getOperand(1) == BO1->getOperand(1)) { in foldICmpBinOp()
4322 Op1->hasOneUse()) { in foldICmpEquality()
4379 if ((Op0->hasOneUse() && match(Op0, m_ZExt(m_Value(A))) && in foldICmpEquality()
4381 (Op1->hasOneUse() && match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) && in foldICmpEquality()
4423 if (Op0->hasOneUse() && in foldICmpEquality()
4428 !A->hasOneUse()) { in foldICmpEquality()
4502 if (!CastOp0->hasOneUse() && !CastOp1->hasOneUse()) in foldICmpWithZextOrSext()
5166 if (!Cmp.hasOneUse()) in foldICmpUsingKnownBits()
5619 V1Ty == V2->getType() && (LHS->hasOneUse() || RHS->hasOneUse())) { in foldVectorCmp()
5628 if (!LHS->hasOneUse() || !match(RHS, m_Constant(C))) in foldVectorCmp()
5747 if (I.hasOneUse()) in visitICmpInst()
6331 if (I.hasOneUse()) in visitFCmpInst()