/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 30 if (!IsFreeToInvert(Operand, Operand->hasOneUse())) in dyn_castNotVal() 171 if (Op->hasOneUse()) { in OptAndOp() 179 if (Op->hasOneUse()){ in OptAndOp() 201 if (Op->hasOneUse()) { in OptAndOp() 277 if (Op->hasOneUse()) { in OptAndOp() 935 LHS->hasOneUse() && RHS->hasOneUse()) { in FoldAndOfICmps() 1221 if (Op0->hasOneUse() && Op1->hasOneUse()) { in matchDeMorgansLaws() 1284 if (!Op0I->hasOneUse()) break; in visitAnd() 1326 if (Op0I->hasOneUse() && !match(Op0LHS, m_Zero())) { in visitAnd() 1401 if (Op0->hasOneUse() && in visitAnd() [all …]
|
D | InstCombineCasts.cpp | 100 if (!AI.hasOneUse() && CastElTyAlign == AllocElTyAlign) return nullptr; in PromoteCastOfAllocation() 110 if (!AI.hasOneUse() && CastElTyStoreSize < AllocElTyStoreSize) return nullptr; in PromoteCastOfAllocation() 148 if (!AI.hasOneUse()) { in PromoteCastOfAllocation() 350 if (!I->hasOneUse()) return false; in canEvaluateTruncated() 443 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt() 524 if (Src->hasOneUse() && in visitTrunc() 550 if (Src->hasOneUse() && in visitTrunc() 552 cast<Instruction>(Src)->getOperand(0)->hasOneUse()) { in visitTrunc() 567 if (Src->hasOneUse() && isa<IntegerType>(SrcTy) && in visitTrunc() 740 if (!I->hasOneUse()) return false; in canEvaluateZExtd() [all …]
|
D | InstCombineCompares.cpp | 651 (GEPLHS->hasAllConstantIndices() || GEPLHS->hasOneUse()) && in FoldGEPICmp() 652 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in FoldGEPICmp() 722 if (GEPsInBounds && (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) && in FoldGEPICmp() 723 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) { in FoldGEPICmp() 1086 if (Shr->hasOneUse() && Shr->isExact()) in FoldICmpShrCst() 1089 if (Shr->hasOneUse()) { in FoldICmpShrCst() 1228 if (ICI.isEquality() && LHSI->hasOneUse()) { in visitICmpInstWithInstAndIntCst() 1277 if (LHSI->hasOneUse()) { in visitICmpInstWithInstAndIntCst() 1314 if (LHSI->hasOneUse() && isa<ConstantInt>(LHSI->getOperand(1)) && in visitICmpInstWithInstAndIntCst() 1315 LHSI->getOperand(0)->hasOneUse()) { in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombinePHI.cpp | 47 if (!I || I->getOpcode() != Opc || !I->hasOneUse() || in FoldPHIArgBinOpIntoPHI() 150 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() || in FoldPHIArgGEPIntoPHI() 319 if (!LI || !LI->hasOneUse()) in FoldPHIArgLoadIntoPHI() 436 if (Zext->getSrcTy() != NarrowType || !Zext->hasOneUse()) in FoldPHIArgZextsIntoPHI() 529 if (!I || !I->hasOneUse() || !I->isSameOperationAs(FirstInst)) in FoldPHIArgOpIntoPHI() 602 if (!PN->hasOneUse()) return false; in DeadPHICycle() 760 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI() 895 PN.getIncomingValue(0)->hasOneUse()) in visitPHINode() 902 if (PN.hasOneUse()) { in visitPHINode() 917 if (PHIUser->hasOneUse() && in visitPHINode()
|
D | InstCombineAddSub.cpp | 561 InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) && in simplify() 562 (!isa<Constant>(V1) && V1->hasOneUse())) ? 2 : 1; in simplify() 1000 if (!LHS->hasOneUse() && !RHS->hasOneUse()) in checkForNegativeOperand() 1109 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) { in visitAdd() 1176 if (LHS->hasOneUse() && in visitAdd() 1210 if (SI && SI->hasOneUse()) { in visitAdd() 1234 if (LHSConv->hasOneUse() && in visitAdd() 1251 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitAdd() 1363 if (LHSConv->hasOneUse() && in visitFAdd() 1380 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitFAdd() [all …]
|
D | InstCombineVectorOps.cpp | 49 if (I->getOpcode() == Instruction::Load && I->hasOneUse()) in cheapToScalarize() 52 if (BO->hasOneUse() && in cheapToScalarize() 57 if (CI->hasOneUse() && in cheapToScalarize() 84 if (!PHIUser->hasOneUse() || !(PHIUser->user_back() == PN) || in scalarizePHI() 154 if (EI.getOperand(0)->hasOneUse() && VectorWidth != 1) { in visitExtractElementInst() 188 if (I->hasOneUse() && in visitExtractElementInst() 235 if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) { in visitExtractElementInst() 242 if (SI->hasOneUse()) { in visitExtractElementInst() 462 while (V->hasOneUse() && Depth < 10) { in visitInsertValueInst() 513 if (!IE.hasOneUse() || !isa<InsertElementInst>(IE.user_back())) { in visitInsertElementInst() [all …]
|
D | InstructionCombining.cpp | 302 Op0->hasOneUse() && Op1->hasOneUse()) { in SimplifyAssociativeOrCommutative() 484 if (!V && LHS->hasOneUse() && RHS->hasOneUse()) in tryFactorization() 504 if (!V && LHS->hasOneUse() && RHS->hasOneUse()) in tryFactorization() 742 if (!SI->hasOneUse()) return nullptr; in FoldOpIntoSelect() 771 if (CI->hasOneUse()) { in FoldOpIntoSelect() 800 if (!PN->hasOneUse()) { in FoldOpIntoPhi() 995 !Src.hasOneUse()) in shouldMergeGEPs() 1089 if (!Op->hasOneUse()) in Descale() 1098 if (!Op->hasOneUse()) in Descale() 1123 if (Amt < logScale || !Op->hasOneUse()) in Descale() [all …]
|
D | InstCombineSelect.cpp | 213 if (TVI->hasOneUse() && TVI->getNumOperands() == 2 && in FoldSelectIntoOp() 248 if (FVI->hasOneUse() && FVI->getNumOperands() == 2 && in FoldSelectIntoOp() 416 if (ICI->hasOneUse()) in visitSelectInstWithICmp() 930 if (FCI->hasOneUse() && FCmpInst::isUnordered(FCI->getPredicate())) { in visitSelectInst() 973 if (FCI->hasOneUse() && FCmpInst::isUnordered(FCI->getPredicate())) { in visitSelectInst() 996 if (TI->hasOneUse() && FI->hasOneUse()) { in visitSelectInst() 1125 (SI.hasOneUse() && match(*SI.user_begin(), m_Not(m_Value()))); in visitSelectInst() 1164 if (TrueSI->getFalseValue() == FalseVal && TrueSI->hasOneUse()) { in visitSelectInst() 1182 if (FalseSI->getTrueValue() == TrueVal && FalseSI->hasOneUse()) { in visitSelectInst()
|
D | InstCombineShifts.cpp | 46 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms() 106 if (!I->hasOneUse()) return false; in CanEvaluateShifted() 413 if (Op0->hasOneUse()) { in FoldShiftByConstant() 426 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() && in FoldShiftByConstant() 445 if (isLeftShift && Op0BOOp1->hasOneUse() && in FoldShiftByConstant() 462 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant() 480 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
|
D | InstCombineMulDivRem.cpp | 33 if (!V->hasOneUse()) return nullptr; in simplifyValueKnownNonZero() 252 if (Op0->hasOneUse()) { in visitMul() 316 if (BO && BO->hasOneUse() && in visitMul() 406 if (!Op->hasOneUse()) in detectLog2OfHalf() 417 if (!OpLog2Of->hasOneUse()) in detectLog2OfHalf() 506 if (FMulOrDiv->hasOneUse()) { in foldFMulConst() 667 if (Opnd0->hasOneUse()) { in visitFMul() 686 if (Opnd0->hasOneUse() && in visitFMul() 745 if (SI->use_empty() && SelectCond->hasOneUse()) in SimplifyDivRemOfSelect() 1306 if (Op0->hasOneUse() && match(Op0, m_FDiv(m_Value(X), m_Value(Y)))) { in visitFDiv() [all …]
|
D | InstCombineSimplifyDemanded.cpp | 154 if (Depth != 0 && !I->hasOneUse()) { in SimplifyDemandedUseBits() 234 if (Depth == 0 && !V->hasOneUse()) in SimplifyDemandedUseBits() 384 if (LHSInst->getOpcode() == Instruction::And && LHSInst->hasOneUse() && in SimplifyDemandedUseBits() 844 if (!Shr->hasOneUse()) in SimplifyShrShlDemandedBits() 937 if (!V->hasOneUse()) { in SimplifyDemandedVectorElts()
|
D | InstCombineLoadStoreAlloca.cpp | 499 if (LI.hasOneUse()) in combineLoadToOperationType() 839 if (Op->hasOneUse()) { in visitLoadInst() 1047 if (Ptr->hasOneUse()) { in visitStoreInst() 1052 if (GEP->getOperand(0)->hasOneUse()) in visitStoreInst()
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 228 if (V->hasOneUse() && isa<Instruction>(V) && in isReassociableOp() 238 if (V->hasOneUse() && isa<Instruction>(V) && in isReassociableOp() 602 if (!Op->hasOneUse()) { in LinearizeExprTree() 621 assert(!Op->hasOneUse() && "Only one use, but we got here twice!"); in LinearizeExprTree() 639 if (!Op->hasOneUse()) in LinearizeExprTree() 656 assert(Op->hasOneUse() && "Has uses outside the expression tree!"); in LinearizeExprTree() 996 if (Sub->hasOneUse() && in ShouldBreakUpSubtract() 1267 if (!Opnd1->getValue()->hasOneUse()) in CombineXorOpnd() 1303 if (Opnd1->getValue()->hasOneUse()) in CombineXorOpnd() 1305 if (Opnd2->getValue()->hasOneUse()) in CombineXorOpnd() [all …]
|
D | MergedLoadStoreMotion.cpp | 339 A0->hasOneUse() && (A0->getParent() == L0->getParent()) && in hoistLoad() 340 A1->hasOneUse() && (A1->getParent() == L1->getParent()) && in hoistLoad() 466 if (A0 && A1 && A0->isIdenticalTo(A1) && A0->hasOneUse() && in sinkStore() 467 (A0->getParent() == S0->getParent()) && A1->hasOneUse() && in sinkStore()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 559 if (Op->hasOneUse() || Op->getNumValues() > 1) in deleteAndRecombine() 576 if (!Op.hasOneUse()) return 0; in isNegatibleForFree() 638 assert(Op.hasOneUse() && "Unknown reuse!"); in GetNegatedExpression() 745 if (isSetCCEquivalent(N, N0, N1, N2) && N.getNode()->hasOneUse()) in isOneUseSetCC() 835 if (N0.hasOneUse()) { in ReassociateOps() 855 if (N1.hasOneUse()) { in ReassociateOps() 1570 if (Op.hasOneUse() && in visitTokenFactor() 2111 N0.getNode()->hasOneUse()) { in visitMUL() 2115 N1.getNode()->hasOneUse()) { in visitMUL() 2811 if (SVN0->hasOneUse() && SVN1->hasOneUse() && in SimplifyBinOpWithSameOpcodeHands() [all …]
|
D | TargetLowering.cpp | 351 if (!Op.getNode()->hasOneUse()) in ShrinkDemandedOp() 404 if (!Op.getNode()->hasOneUse()) { in SimplifyDemandedBits() 677 if (InOp.hasOneUse() && in SimplifyDemandedBits() 679 InnerOp.hasOneUse() && in SimplifyDemandedBits() 1007 if (Op.getOperand(0).getNode()->hasOneUse()) { in SimplifyDemandedBits() 1316 if (N0.hasOneUse() && N0.getOpcode() == ISD::TRUNCATE) in SimplifySetCC() 1319 if (CTPOP.hasOneUse() && CTPOP.getOpcode() == ISD::CTPOP && in SimplifySetCC() 1341 DCI.isBeforeLegalize() && N0->hasOneUse()) { in SimplifySetCC() 1398 N0.getNode()->hasOneUse() && in SimplifySetCC() 1400 N0.getOperand(0).getNode()->hasOneUse() && in SimplifySetCC() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 404 if (!N.hasOneUse()) in IsProfitableToFold() 505 if (Callee.getNode() == Chain.getNode() || !Callee.hasOneUse()) in isCalleeLoad() 516 if (!Chain.hasOneUse()) in isCalleeLoad() 532 Callee.getValue(1).hasOneUse()) in isCalleeLoad() 923 !Shift.hasOneUse()) in foldMaskAndShiftToExtract() 971 if (!N.hasOneUse() || !Shift.hasOneUse()) in foldMaskedShiftToScaledMask() 1031 if (Shift.getOpcode() != ISD::SRL || !Shift.hasOneUse() || in foldMaskAndShiftToScale() 1257 if (MulVal.getNode()->getOpcode() == ISD::ADD && MulVal.hasOneUse() && in matchAddressRecursively() 1304 if (!RHS.getNode()->hasOneUse() || in matchAddressRecursively() 1315 !AM.Base_Reg.getNode()->hasOneUse()) || in matchAddressRecursively() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 73 if (!Phi->hasOneUse()) in lookThroughAnd() 127 if (!Cast || !Cast->hasOneUse() || !(isa<ZExtInst>(J) || IsSExtInst)) in getSourceExtensionKind() 376 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin()))) in isMinMaxSelectCmpPattern() 387 if (!Cmp->hasOneUse()) in isMinMaxSelectCmpPattern()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64AddressTypePromotion.cpp | 186 (Inst->getType() == ConsideredSExtType || Inst->hasOneUse())) in shouldGetThrough() 191 if (!Inst->hasOneUse()) in shouldGetThrough()
|
/external/llvm/lib/Analysis/ |
D | CodeMetrics.cpp | 124 if (!CS.isNoInline() && F->hasInternalLinkage() && F->hasOneUse()) in analyzeBasicBlock()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 822 if (AddI->getParent() != CI->getParent() && !AddI->hasOneUse()) in CombineUAddWithOverflow() 828 if (AddI->hasOneUse()) in CombineUAddWithOverflow() 835 auto *InsertPt = AddI->hasOneUse() ? CI : AddI; in CombineUAddWithOverflow() 1823 if (!ExtVal || !ExtVal->hasOneUse() || in optimizeCallInst() 1960 if (CI && CI->hasOneUse() && CI->getParent() == PN->getIncomingBlock(I) && in dupRetToEnableTailCallOpts() 2895 if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType())) in getAction() 2958 if (!ExtOpnd->hasOneUse()) { in promoteOperandForOther() 3356 if (I->hasOneUse() || in matchAddr() 4117 (LI->hasOneUse() || hasSameExtUse(LI, *TLI)))) in extLdPromotion() 4165 if (!LI->hasOneUse() && TLI && in moveExtToFormExtLoad() [all …]
|
D | InterleavedAccessPass.cpp | 241 if (!SVI || !SVI->hasOneUse()) in lowerInterleavedStore()
|
/external/llvm/lib/Target/BPF/ |
D | BPFISelDAGToDAG.cpp | 159 if (Node->hasOneUse()) in Select()
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430ISelDAGToDAG.cpp | 355 N1.hasOneUse() && in SelectIndexedBinOp() 404 if (Node->hasOneUse()) in Select()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRegStackify.cpp | 197 if (!MRI.hasOneUse(Reg)) in runOnMachineFunction()
|