Lines Matching refs:hasOneUse
320 if (!Cast || !Cast->hasOneUse()) in simplifyAssocCastAssoc()
334 if (!BinOp2 || !BinOp2->hasOneUse() || BinOp2->getOpcode() != AssocOpcode) in simplifyAssocCastAssoc()
673 if (!V && (LHS->hasOneUse() || RHS->hasOneUse())) in tryFactorization()
693 if (!V && (LHS->hasOneUse() || RHS->hasOneUse())) in tryFactorization()
799 if (!isFreeToInvert(Op, Op->hasOneUse(), Consumes) || !Consumes) in tryFoldInstWithCtpopWithNot()
801 Value *NotOp = getFreelyInverted(Op, Op->hasOneUse(), &Builder); in tryFoldInstWithCtpopWithNot()
1306 if (LHS->hasOneUse() && RHS->hasOneUse()) { in SimplifySelectsFeedingBinaryOp()
1312 } else if (LHSIsSelect && LHS->hasOneUse()) { in SimplifySelectsFeedingBinaryOp()
1319 } else if (RHSIsSelect && RHS->hasOneUse()) { in SimplifySelectsFeedingBinaryOp()
1466 if (!SI->hasOneUse() && !FoldWithMultiUse) in FoldOpIntoSelect()
1501 if (CI->hasOneUse()) { in FoldOpIntoSelect()
1571 if (!PN->hasOneUse()) { in foldOpIntoPhi()
1675 if (!Phi0 || !Phi1 || !Phi0->hasOneUse() || !Phi1->hasOneUse() || in foldBinopWithPhiOperands()
1799 !Src.hasOneUse()) in shouldMergeGEPs()
1822 LHS->hasOneUse() && RHS->hasOneUse() && in foldVectorBinop()
1856 (LHS->hasOneUse() || RHS->hasOneUse() || in foldVectorBinop()
1861 if (LHS->hasOneUse() && isSplatValue(RHS)) in foldVectorBinop()
1886 (LHS->hasOneUse() || RHS->hasOneUse() || LHS == RHS)) { in foldVectorBinop()
2072 (Op0->hasOneUse() || Op1->hasOneUse()))) { in narrowMathIfNoOverflow()
2076 if (!Op0->hasOneUse() || !match(Op1, m_Constant(WideC))) in narrowMathIfNoOverflow()
2151 (Src->hasOneUse() || Src->hasAllConstantIndices())) { in visitGEPOfGEP()
2314 if (auto *BV = getFreelyInvertedImpl(B, B->hasOneUse(), Builder, in getFreelyInvertedImpl()
2317 if (auto *AV = getFreelyInvertedImpl(A, A->hasOneUse(), Builder, in getFreelyInvertedImpl()
2326 if (auto *BV = getFreelyInvertedImpl(B, B->hasOneUse(), Builder, in getFreelyInvertedImpl()
2329 if (auto *AV = getFreelyInvertedImpl(A, A->hasOneUse(), Builder, in getFreelyInvertedImpl()
2338 if (auto *AV = getFreelyInvertedImpl(A, A->hasOneUse(), Builder, in getFreelyInvertedImpl()
2347 if (auto *AV = getFreelyInvertedImpl(A, A->hasOneUse(), Builder, in getFreelyInvertedImpl()
2360 if (!getFreelyInvertedImpl(B, B->hasOneUse(), /*Builder*/ nullptr, in getFreelyInvertedImpl()
2363 if (Value *NotA = getFreelyInvertedImpl(A, A->hasOneUse(), Builder, in getFreelyInvertedImpl()
2366 Value *NotB = getFreelyInvertedImpl(B, B->hasOneUse(), Builder, in getFreelyInvertedImpl()
2529 if (DI != -1 && !PN->hasOneUse()) in visitGetElementPtrInst()
3063 if (CI && CI->hasOneUse()) in visitFree()
3320 Shl->hasOneUse()) { in visitSwitchInst()
3428 if (!WO->hasOneUse()) in foldExtractOfOverflowIntrinsic()
3553 if (L->isSimple() && L->hasOneUse()) { in visitExtractValueInst()
3958 if (!OrigOpInst || !OrigOpInst->hasOneUse() || isa<PHINode>(OrigOp)) in pushFreezeToPreventPoisonFromPropagating()
4068 if (isa<Constant>(Op) || Op->hasOneUse()) in freezeOtherUses()