Home
last modified time | relevance | path

Searched refs:hasOneUse (Results 1 – 25 of 129) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVMergeBaseOffset.cpp86 !MRI->hasOneUse(HiLUI.getOperand(0).getReg())) in detectLuiAddiGlobal()
94 !MRI->hasOneUse(LoADDI->getOperand(0).getReg())) in detectLuiAddiGlobal()
143 if (!MRI->hasOneUse(Reg)) in matchLargeOffset()
159 !MRI->hasOneUse(OffsetLui.getOperand(0).getReg())) in matchLargeOffset()
182 assert(MRI->hasOneUse(DestReg) && "expected one use for LoADDI"); in detectAndFoldOffset()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp98 if (!OldLHS->hasOneUse() && !OldRHS->hasOneUse()) in SimplifyBSwap()
103 if (!OldLHS->hasOneUse()) in SimplifyBSwap()
126 if (Op->hasOneUse()) { in OptAndOp()
1074 (ZeroICmp->hasOneUse() || UnsignedICmp->hasOneUse())) { in foldUnsignedUnderflowCheck()
1219 if (PredL == ICmpInst::ICMP_EQ && PredL == PredR && LHS->hasOneUse() && in foldAndOfICmps()
1220 RHS->hasOneUse()) { in foldAndOfICmps()
1470 !isFreeToInvert(A, A->hasOneUse()) && in matchDeMorgansLaws()
1471 !isFreeToInvert(B, B->hasOneUse())) { in matchDeMorgansLaws()
1619 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldAndToXor()
1637 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldOrToXor()
[all …]
DInstCombineSelect.cpp175 if (!Cmp->hasOneUse()) in foldSelectICmpAnd()
319 (!TI->hasOneUse() || !FI->hasOneUse())) in foldSelectOpOp()
321 } else if (!TI->hasOneUse() || !FI->hasOneUse()) { in foldSelectOpOp()
339 (TI->hasOneUse() || FI->hasOneUse())) { in foldSelectOpOp()
354 !TI->hasOneUse() || !FI->hasOneUse()) in foldSelectOpOp()
429 if (TVI->hasOneUse() && !isa<Constant>(FalseVal)) { in foldSelectIntoOp()
460 if (FVI->hasOneUse() && !isa<Constant>(TrueVal)) { in foldSelectIntoOp()
504 if (!(Cmp->hasOneUse() && Cmp->getOperand(0)->hasOneUse() && in foldSelectICmpAndAnd()
653 (IC->hasOneUse() + Or->hasOneUse())) in foldSelectICmpAndOr()
724 if (IsNegative && !TrueVal->hasOneUse() && !ICI->hasOneUse()) in canonicalizeSaturatedSubtract()
[all …]
DInstCombinePHI.cpp99 if (!PN.hasOneUse()) in FoldIntegerTypedPHI()
169 if (!LoadI->hasOneUse()) in FoldIntegerTypedPHI()
257 (LoadI && LoadI->hasOneUse())) && in FoldIntegerTypedPHI()
308 if (!I || I->getOpcode() != Opc || !I->hasOneUse() || in FoldPHIArgBinOpIntoPHI()
407 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() || in FoldPHIArgGEPIntoPHI()
576 if (!LI || !LI->hasOneUse()) in FoldPHIArgLoadIntoPHI()
695 if (Zext->getSrcTy() != NarrowType || !Zext->hasOneUse()) in FoldPHIArgZextsIntoPHI()
779 if (!I || !I->hasOneUse() || !I->isSameOperationAs(FirstInst)) in FoldPHIArgOpIntoPHI()
847 if (!PN->hasOneUse()) return false; in DeadPHICycle()
1015 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI()
[all …]
DInstructionCombining.cpp272 if (!Cast || !Cast->hasOneUse()) in simplifyAssocCastAssoc()
286 if (!BinOp2 || !BinOp2->hasOneUse() || BinOp2->getOpcode() != AssocOpcode) in simplifyAssocCastAssoc()
581 if (!V && LHS->hasOneUse() && RHS->hasOneUse()) in tryFactorization()
601 if (!V && LHS->hasOneUse() && RHS->hasOneUse()) in tryFactorization()
800 if (LHS->hasOneUse() && RHS->hasOneUse()) { in SimplifySelectsFeedingBinaryOp()
806 } else if (LHSIsSelect && LHS->hasOneUse()) { in SimplifySelectsFeedingBinaryOp()
811 } else if (RHSIsSelect && RHS->hasOneUse()) { in SimplifySelectsFeedingBinaryOp()
891 if (!SI->hasOneUse()) in FoldOpIntoSelect()
926 if (CI->hasOneUse()) { in FoldOpIntoSelect()
969 if (!PN->hasOneUse()) { in foldOpIntoPhi()
[all …]
DInstCombineCasts.cpp103 if (!AI.hasOneUse() && CastElTyAlign == AllocElTyAlign) return nullptr; in PromoteCastOfAllocation()
113 if (!AI.hasOneUse() && CastElTyStoreSize < AllocElTyStoreSize) return nullptr; in PromoteCastOfAllocation()
151 if (!AI.hasOneUse()) { in PromoteCastOfAllocation()
272 if (CSrc->hasOneUse()) in commonCastTransforms()
325 if (!V->hasOneUse()) in canNotEvaluateInType()
460 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType)) in foldVecTruncToExtElt()
641 if (Shuf && Shuf->hasOneUse() && isa<UndefValue>(Shuf->getOperand(1)) && in shrinkSplatShuffle()
665 if (!InsElt || !InsElt->hasOneUse()) in shrinkInsertElt()
760 if (Src->hasOneUse() && in visitTrunc()
787 if (Src->hasOneUse() && in visitTrunc()
[all …]
DInstCombineAddSub.cpp470 InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) && in simplify()
471 (!isa<Constant>(V1) && V1->hasOneUse())) ? 2 : 1; in simplify()
775 if (!LHS->hasOneUse() && !RHS->hasOneUse()) in checkForNegativeOperand()
929 if (C->isOneValue() && Op0->hasOneUse()) { in foldAddWithConstant()
1260 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) { in visitAdd()
1324 if (LHS->hasOneUse() && in visitAdd()
1353 if (SI && SI->hasOneUse()) { in visitAdd()
1541 if (LHSConv->hasOneUse() && in visitFAdd()
1560 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitFAdd()
1647 ((NumNonConstantIndices1 > 0 && !GEP1->hasOneUse()) || in OptimizePointerDifference()
[all …]
DInstCombineCompares.cpp930 (GEPLHS->hasAllConstantIndices() || GEPLHS->hasOneUse()) && in foldGEPICmp()
931 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) && in foldGEPICmp()
1010 if (GEPsInBounds && (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) && in foldGEPICmp()
1011 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) { in foldGEPICmp()
1266 if (!AddWithCst->hasOneUse()) in processUGT_ADDCST_ADD()
1541 if (Cmp.isEquality() && Trunc->hasOneUse()) { in foldICmpTruncConstant()
1593 if (Xor->hasOneUse()) { in foldICmpXorConstant()
1699 if (Shift->hasOneUse() && C1.isNullValue() && Cmp.isEquality() && in foldICmpAndShift()
1734 if (!And->hasOneUse()) in foldICmpAndConstConst()
1787 if (!Cmp.isSigned() && C1.isNullValue() && And->getOperand(0)->hasOneUse() && in foldICmpAndConstConst()
[all …]
DInstCombineVectorOps.cpp110 if (!PHIUser->hasOneUse() || !(PHIUser->user_back() == PN) || in scalarizePHI()
230 if (!X->hasOneUse() || !Ext.getVectorOperand()->hasOneUse()) in foldBitcastExtElt()
241 if (!Ext.getVectorOperand()->hasOneUse()) in foldBitcastExtElt()
340 if (SrcVec->hasOneUse()) { in visitExtractElementInst()
433 if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) { in visitExtractElementInst()
569 if (InsElt->hasOneUse() && isa<InsertElementInst>(InsElt->user_back())) in replaceExtractElements()
707 while (V->hasOneUse() && Depth < 10) { in visitInsertValueInst()
750 if (InsElt.hasOneUse() && isa<InsertElementInst>(InsElt.user_back())) in foldInsSequenceIntoSplat()
778 (!CurrIE->hasOneUse() && (NextIE != nullptr || !Idx->isZero()))) in foldInsSequenceIntoSplat()
909 if (!InsElt1 || !InsElt1->hasOneUse()) in hoistInsEltConst()
[all …]
DInstCombineShifts.cpp192 !Trunc->hasOneUse()) in dropRedundantMaskingOfLeftShiftInput()
296 if (!Masked->hasOneUse()) in dropRedundantMaskingOfLeftShiftInput()
327 if (!LogicInst || !LogicInst->isBitwiseLogicOp() || !LogicInst->hasOneUse()) in foldShiftOfShiftedLogic()
406 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms()
511 if (!I->hasOneUse()) return false; in canEvaluateShifted()
758 if (Op0->hasOneUse()) { in FoldShiftByConstant()
771 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() && in FoldShiftByConstant()
790 if (isLeftShift && Op0BOOp1->hasOneUse() && in FoldShiftByConstant()
806 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
824 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
[all …]
DInstCombineMulDivRem.cpp54 if (!V->hasOneUse()) return nullptr; in simplifyValueKnownNonZero()
241 if (Op0->hasOneUse()) { in visitMul()
309 if (Div && Div->hasOneUse() && in visitMul()
454 if (Op0->hasOneUse() && C1DivC->isNormalFP()) in visitFMul()
517 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitFMul()
527 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitFMul()
606 if (SI->use_empty() && SelectCond->hasOneUse()) in simplifyDivRemOfSelectWithZeroOp()
927 X->getType() == Y->getType() && (N->hasOneUse() || D->hasOneUse())) { in narrowUDivURem()
1252 if (I.hasAllowReassoc() && Op0->hasOneUse() && Op1->hasOneUse()) { in visitFDiv()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DGuardUtils.cpp67 if (!Cond->hasOneUse()) in parseWidenableBranch()
93 A->hasOneUse()) { in parseWidenableBranch()
100 B->hasOneUse()) { in parseWidenableBranch()
DIVDescriptors.cpp89 if (!Phi->hasOneUse()) in lookThroughAnd()
470 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin()))) in isMinMaxSelectCmpPattern()
481 if (!Cmp->hasOneUse()) in isMinMaxSelectCmpPattern()
526 if (!CI || !CI->hasOneUse()) in isConditionalRdxPattern()
711 if (Phi->hasOneUse()) { in isFirstOrderRecurrence()
994 if (!Inst->hasOneUse()) in getCastsForInductionPHI()
DCodeMetrics.cpp132 if (!Call->isNoInline() && F->hasInternalLinkage() && F->hasOneUse()) in analyzeBasicBlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp796 if (Op->hasOneUse() || Op->getNumValues() > 1) in deleteAndRecombine()
845 if (isSetCCEquivalent(N, N0, N1, N2) && N.getNode()->hasOneUse()) in isOneUseSetCC()
902 if (N0.hasOneUse()) in reassociationCanBreakAddressingModePattern()
965 if (N0.hasOneUse()) { in reassociateOpsCommutative()
1215 Replace0 &= !N0->hasOneUse(); in PromoteIntBinOp()
1216 Replace1 &= (N0 != N1) && !N1->hasOneUse(); in PromoteIntBinOp()
1730 if (N->hasOneUse() && N->use_begin()->getOpcode() == ISD::TokenFactor) in visitTokenFactor()
1767 if (Op.hasOneUse() && !is_contained(TFs, Op.getNode())) { in visitTokenFactor()
1933 if (Sel.getOpcode() != ISD::SELECT || !Sel.hasOneUse()) { in foldBinOpIntoSelect()
1938 if (Sel.getOpcode() != ISD::SELECT || !Sel.hasOneUse()) in foldBinOpIntoSelect()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DReassociate.cpp150 if (I && I->hasOneUse() && I->getOpcode() == Opcode) in isReassociableOp()
159 if (I && I->hasOneUse() && in isReassociableOp()
522 if (!Op->hasOneUse()) { in LinearizeExprTree()
543 assert(!Op->hasOneUse() && "Only one use, but we got here twice!"); in LinearizeExprTree()
561 if (!Op->hasOneUse()) in LinearizeExprTree()
578 assert(Op->hasOneUse() && "Has uses outside the expression tree!"); in LinearizeExprTree()
943 if (Sub->hasOneUse() && in ShouldBreakUpSubtract()
1212 if (!Opnd1->getValue()->hasOneUse()) in CombineXorOpnd()
1246 if (Opnd1->getValue()->hasOneUse()) in CombineXorOpnd()
1248 if (Opnd2->getValue()->hasOneUse()) in CombineXorOpnd()
[all …]
DMergedLoadStoreMotion.cpp233 return A0 && A1 && A0->isIdenticalTo(A1) && A0->hasOneUse() && in canSinkStoresAndGEPs()
234 (A0->getParent() == S0->getParent()) && A1->hasOneUse() && in canSinkStoresAndGEPs()
DLoopRerollPass.cpp474 return I->hasOneUse() && TI->getOperand(0) == I; in isCompareUsedByBranch()
555 if (BO->hasNoSignedWrap() && UUser && UUser->hasOneUse() && in isLoopControlIV()
622 if (C->hasOneUse()) { in add()
632 } while (C->hasOneUse()); in add()
712 if (Op->hasOneUse() && L->contains(Op) && !Exclude.count(Op) && in collectInLoopUserSet()
1184 if (UU->hasOneUse()) { in validate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp474 if (I->hasOneUse() && in getArithmeticInstrCost()
484 if (I->hasOneUse() && I->getOpcode() == Instruction::Xor) in getArithmeticInstrCost()
868 if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() && in getCmpSelInstrCost()
910 if (!Ld->hasOneUse()) in isFoldableLoad()
918 if (UserI->hasOneUse()) { in isFoldableLoad()
1035 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1039 (!LdUser->hasOneUse() || !isa<StoreInst>(*LdUser->user_begin()))) in getMemoryOpCost()
1044 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelAttributes.cpp97 if (!U->hasOneUse()) in processUse()
105 if (!BCI || !BCI->hasOneUse()) in processUse()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp581 if (!N.hasOneUse()) in IsProfitableToFold()
769 if (Callee.getNode() == Chain.getNode() || !Callee.hasOneUse()) in isCalleeLoad()
780 if (!Chain.hasOneUse()) in isCalleeLoad()
796 Callee.getValue(1).hasOneUse()) in isCalleeLoad()
1637 !Shift.hasOneUse()) in foldMaskAndShiftToExtract()
1688 if (Shift.getOpcode() == ISD::ANY_EXTEND && Shift.hasOneUse() && in foldMaskedShiftToScaledMask()
1704 if (!N.hasOneUse() || !Shift.hasOneUse()) in foldMaskedShiftToScaledMask()
1771 if (Shift.getOpcode() != ISD::SRL || !Shift.hasOneUse() || in foldMaskAndShiftToScale()
1861 !Shift.hasOneUse() || !N.hasOneUse()) in foldMaskedShiftToBEXTR()
2057 if (MulVal.getNode()->getOpcode() == ISD::ADD && MulVal.hasOneUse() && in matchAddressRecursively()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyRegStackify.cpp287 static bool hasOneUse(unsigned Reg, MachineInstr *Def, MachineRegisterInfo &MRI, in hasOneUse() function
290 if (MRI.hasOneUse(Reg)) in hasOneUse()
495 if (MRI.hasOneDef(Reg) && MRI.hasOneUse(Reg)) { in moveForSingleUse()
859 if (CanMove && hasOneUse(Reg, Def, MRI, MDT, LIS)) { in runOnMachineFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp73 if (!LI->hasOneUse()) in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/
DMSP430ISelDAGToDAG.cpp353 N1.hasOneUse() && in tryIndexedBinOp()
394 if (Node->hasOneUse()) { in Select()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DPredicateInfo.cpp334 if ((isa<Instruction>(Op0) || isa<Argument>(Op0)) && !Op0->hasOneUse()) in collectCmpOps()
336 if ((isa<Instruction>(Op1) || isa<Argument>(Op1)) && !Op1->hasOneUse()) in collectCmpOps()
465 if ((!isa<Instruction>(Op) && !isa<Argument>(Op)) || Op->hasOneUse()) in processSwitch()

123456