Home
last modified time | relevance | path

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

1234567

/netbsd/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVMergeBaseOffset.cpp86 !MRI->hasOneUse(HiLUI.getOperand(0).getReg())) in INITIALIZE_PASS()
94 !MRI->hasOneUse(LoADDI->getOperand(0).getReg())) in INITIALIZE_PASS()
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()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp100 if (!OldLHS->hasOneUse() && !OldRHS->hasOneUse()) in SimplifyBSwap()
1118 if (!Cmp0->hasOneUse() || !Cmp1->hasOneUse()) in foldEqOfParts()
1691 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldAndToXor()
1709 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldOrToXor()
1717 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldOrToXor()
2447 if (LHS->hasOneUse() || RHS->hasOneUse()) { in foldOrOfICmps()
2756 if (Op0->hasOneUse() || Op1->hasOneUse()) { in visitOr()
2903 if (Op0->hasOneUse() && Op1->hasOneUse() && in visitOr()
2945 (Ov->hasOneUse() || (MulIsNotZero->hasOneUse() && Mul->hasOneUse())) && in visitOr()
3016 if (!Op0->hasOneUse() && !Op1->hasOneUse()) in foldXorToXor()
[all …]
H A DInstCombineSelect.cpp301 (!TI->hasOneUse() || !FI->hasOneUse())) in foldSelectOpOp()
303 } else if (!TI->hasOneUse() || !FI->hasOneUse()) { in foldSelectOpOp()
321 (TI->hasOneUse() || FI->hasOneUse())) { in foldSelectOpOp()
332 (TII->hasOneUse() || FII->hasOneUse())) { in foldSelectOpOp()
361 !TI->hasOneUse() || !FI->hasOneUse()) in foldSelectOpOp()
513 if (!(Cmp->hasOneUse() && Cmp->getOperand(0)->hasOneUse() && in foldSelectICmpAndAnd()
662 (IC->hasOneUse() + Or->hasOneUse())) in foldSelectICmpAndOr()
765 if (IsNegative && !TrueVal->hasOneUse() && !ICI->hasOneUse()) in canonicalizeSaturatedSubtract()
935 if (II->hasOneUse() && SelectArg->hasOneUse() && in foldSelectCttzCtlz()
1301 if (!Cmp1->hasOneUse() && (Cmp00 == X || !Cmp00->hasOneUse())) in canonicalizeClampLike()
[all …]
H A DInstCombineMulDivRem.cpp55 if (!V->hasOneUse()) return nullptr; in simplifyValueKnownNonZero()
277 if (Div && Div->hasOneUse() && in visitMul()
331 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitMul()
341 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitMul()
416 (Op0->hasOneUse() || Op1->hasOneUse())) { in foldFPSignBitOps()
484 if (Op0->hasOneUse() && C1DivC->isNormalFP()) in visitFMul()
562 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitFMul()
572 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitFMul()
650 if (SI->use_empty() && SelectCond->hasOneUse()) in simplifyDivRemOfSelectWithZeroOp()
974 X->getType() == Y->getType() && (N->hasOneUse() || D->hasOneUse())) { in narrowUDivURem()
[all …]
H A DInstCombineCompares.cpp1597 if (Xor->hasOneUse()) { in foldICmpXorConstant()
1739 if (!And->hasOneUse()) in foldICmpAndConstConst()
2566 if (!Sub->hasOneUse()) in foldICmpSubConstant()
2651 if (!Add->hasOneUse()) in foldICmpAddConstant()
2736 if (Cmp.hasOneUse() && in foldICmpSelectConstant()
3926 (BO0->hasOneUse() || BO1->hasOneUse()) && !I.isUnsigned()) in foldICmpBinOp()
4360 !A->hasOneUse()) { in foldICmpEquality()
4434 if (!CastOp0->hasOneUse() && !CastOp1->hasOneUse()) in foldICmpWithZextOrSext()
5510 V1Ty == V2->getType() && (LHS->hasOneUse() || RHS->hasOneUse())) { in foldVectorCmp()
5638 if (I.hasOneUse()) in visitICmpInst()
[all …]
H A DInstructionCombining.cpp623 if (!V && LHS->hasOneUse() && RHS->hasOneUse()) in tryFactorization()
643 if (!V && LHS->hasOneUse() && RHS->hasOneUse()) in tryFactorization()
847 if (LHS->hasOneUse() && RHS->hasOneUse()) { in SimplifySelectsFeedingBinaryOp()
963 if (!SI->hasOneUse()) in FoldOpIntoSelect()
998 if (CI->hasOneUse()) { in FoldOpIntoSelect()
1064 if (!PN->hasOneUse()) { in foldOpIntoPhi()
1293 !Src.hasOneUse()) in shouldMergeGEPs()
1430 if (!Op->hasOneUse()) in Descale()
1558 LHS->hasOneUse() && RHS->hasOneUse() && in foldVectorBinop()
1594 (LHS->hasOneUse() || RHS->hasOneUse() || LHS == RHS)) { in foldVectorBinop()
[all …]
H A DInstCombineCasts.cpp168 if (!AI.hasOneUse()) { in PromoteCastOfAllocation()
289 if (CSrc->hasOneUse()) in commonCastTransforms()
346 if (!V->hasOneUse()) in canNotEvaluateInType()
844 if (Src->hasOneUse()) { in visitTrunc()
884 if (Src->hasOneUse() && in visitTrunc()
1210 if (SrcOp->hasOneUse()) in visitZExt()
1277 if (LHS && RHS && LHS->hasOneUse() && RHS->hasOneUse() && in visitZExt()
1347 if (ICI->hasOneUse() && in transformSExtICmp()
1688 if (BO && BO->hasOneUse()) { in visitFPTrunc()
1776 if (Op && Op->hasOneUse()) { in visitFPTrunc()
[all …]
H A DInstCombineVectorOps.cpp246 if (!X->hasOneUse() || !Ext.getVectorOperand()->hasOneUse()) in foldBitcastExtElt()
361 if (SrcVec->hasOneUse()) { in visitExtractElementInst()
1004 while (V->hasOneUse() && Depth < 10) { in visitInsertValueInst()
1226 if (!InsElt1 || !InsElt1->hasOneUse()) in hoistInsEltConst()
1250 if (!Inst || !Inst->hasOneUse()) in foldConstantInsEltIntoShuffle()
1373 (VecOp->hasOneUse() || ScalarOp->hasOneUse()) && in visitInsertElementInst()
1411 if (!Insert.hasOneUse()) in visitInsertElementInst()
1477 if (!I->hasOneUse()) in canEvaluateShuffled()
1968 if (!B0->hasOneUse() && !B1->hasOneUse()) in foldSelectShuffle()
2105 if (!Op0->hasOneUse()) in foldIdentityExtractShuffle()
[all …]
H A DInstCombineAddSub.cpp471 InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) && in simplify()
773 if (!LHS->hasOneUse() && !RHS->hasOneUse()) in checkForNegativeOperand()
950 if (Op0->hasOneUse() && *C2 == -(*C)) { in foldAddWithConstant()
966 if (C->isOneValue() && Op0->hasOneUse()) { in foldAddWithConstant()
1261 if (!Op0 || !Op1 || !(Op0->hasOneUse() || Op1->hasOneUse())) in factorizeMathWithShlOps()
1384 if (SI && SI->hasOneUse()) { in visitAdd()
1589 if (LHSConv->hasOneUse() && in visitFAdd()
1608 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitFAdd()
1918 (Op0->hasOneUse() || Op1->hasOneUse())) in visitSub()
1935 (Op0->hasOneUse() || Op1->hasOneUse())) in visitSub()
[all …]
H A DInstCombineShifts.cpp199 !Trunc->hasOneUse()) in dropRedundantMaskingOfLeftShiftInput()
303 if (!Masked->hasOneUse()) in dropRedundantMaskingOfLeftShiftInput()
414 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Constant(C))) && in commonShiftTransforms()
494 if (!I->hasOneUse()) return false; in canEvaluateShifted()
731 if (Op0->hasOneUse()) { in FoldShiftByConstant()
744 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() && in FoldShiftByConstant()
760 if (isLeftShift && Op0BOOp1->hasOneUse() && in FoldShiftByConstant()
776 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
791 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
1125 if (Op0->hasOneUse()) { in visitLShr()
[all …]
H A DInstCombineCalls.cpp542 if (Op0->hasOneUse() && in foldCtpop()
744 if (!match(I1, m_APInt(C1)) || !I0->hasOneUse()) in foldClampRangeOfTwo()
943 (I0->hasOneUse() || I1->hasOneUse()) && X->getType() == Y->getType()) { in visitCallInst()
949 I0->hasOneUse()) { in visitCallInst()
965 (I0->hasOneUse() || I1->hasOneUse()) && X->getType() == Y->getType()) { in visitCallInst()
972 I0->hasOneUse()) { in visitCallInst()
984 (I0->hasOneUse() || I1->hasOneUse())) { in visitCallInst()
989 if (match(I1, m_Constant(C)) && I0->hasOneUse()) { in visitCallInst()
1004 if (I0->hasOneUse() && !I1->hasOneUse()) in visitCallInst()
1288 (Arg0->hasOneUse() || Arg1->hasOneUse())) { in visitCallInst()
[all …]
H A DInstCombineNegator.cpp160 if (!V->hasOneUse() && !IsTrulyNegation) in visitImpl()
223 (I->hasOneUse() || match(I->getOperand(0), m_ImmConstant()))) { in visitImpl()
233 if (!V->hasOneUse()) in visitImpl()
H A DInstCombinePHI.cpp108 if (!PN.hasOneUse()) in foldIntegerTypedPHI()
178 if (!LoadI->hasOneUse()) in foldIntegerTypedPHI()
266 (LoadI && LoadI->hasOneUse())) && in foldIntegerTypedPHI()
938 if (!PN->hasOneUse()) return false; in DeadPHICycle()
1106 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI()
1340 if (PN.hasOneUse()) { in visitPHINode()
1358 if (PHIUser->hasOneUse() && in visitPHINode()
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DGuardUtils.cpp67 if (!Cond->hasOneUse()) in parseWidenableBranch()
93 A->hasOneUse()) { in parseWidenableBranch()
100 B->hasOneUse()) { in parseWidenableBranch()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp4808 if (!N0.hasOneUse() && !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
4832 if (!N0.hasOneUse() && !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
4856 if (!N0.hasOneUse() || !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
4865 if (!N0.hasOneUse() || !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
5032 N0.hasOneUse() && N1.hasOneUse()) { in foldLogicOfSetCCs()
5614 N0.hasOneUse() && N1.hasOneUse()) { in visitAND()
6180 if (!N0->hasOneUse() || !N1->hasOneUse()) in matchBSwapHWordOrAndAnd()
10554 if (!N0.hasOneUse() || !N1.hasOneUse()) in CombineZExtLogicopShiftLoad()
21839 (LHS.hasOneUse() || RHS.hasOneUse())) { in SimplifyVBinOp()
21970 !LHS.hasOneUse() || !RHS.hasOneUse()) in SimplifySelectOps()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp160 if (I && I->hasOneUse() && in isReassociableOp()
523 if (!Op->hasOneUse()) { in LinearizeExprTree()
562 if (!Op->hasOneUse()) in LinearizeExprTree()
1039 if (Sub->hasOneUse() && in ShouldBreakUpSubtract()
1310 if (!Opnd1->getValue()->hasOneUse()) in CombineXorOpnd()
1344 if (Opnd1->getValue()->hasOneUse()) in CombineXorOpnd()
1346 if (Opnd2->getValue()->hasOneUse()) in CombineXorOpnd()
2181 (I->hasOneUse() && in OptimizeInst()
2238 (!I->hasOneUse() || in OptimizeInst()
2265 (!I->hasOneUse() || in OptimizeInst()
[all …]
H A DMergedLoadStoreMotion.cpp233 return A0 && A1 && A0->isIdenticalTo(A1) && A0->hasOneUse() && in canSinkStoresAndGEPs()
234 (A0->getParent() == S0->getParent()) && A1->hasOneUse() && in canSinkStoresAndGEPs()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp94 if (!isa<Constant>(LHS) && !LHS->hasOneUse()) in tryMAddReplacement()
96 if (!isa<Constant>(RHS) && !RHS->hasOneUse()) in tryMAddReplacement()
310 if (!BO || BO->getOpcode() != Instruction::Add || !BO->hasOneUse()) in matchAddReduction()
361 if (!Phi->hasOneUse()) in isReachableFromPHI()
368 while (U->hasOneUse() && U->getOpcode() == BO->getOpcode()) in isReachableFromPHI()
H A DX86ISelDAGToDAG.cpp572 if (!N.hasOneUse()) in IsProfitableToFold()
728 return N->getOperand(1).hasOneUse(); in isProfitableToFormMaskedOp()
784 if (!Chain.hasOneUse()) in isCalleeLoad()
800 Callee.getValue(1).hasOneUse()) in isCalleeLoad()
1842 !Shift.hasOneUse()) in foldMaskAndShiftToExtract()
1909 if (!N.hasOneUse() || !Shift.hasOneUse()) in foldMaskedShiftToScaledMask()
2066 !Shift.hasOneUse() || !N.hasOneUse()) in foldMaskedShiftToBEXTR()
3017 if (!Load.hasOneUse()) in isFusableLoadOpStorePattern()
3662 if (!N0->hasOneUse()) in matchBEXTRFromAndImm()
4184 if (!Op.hasOneUse()) in tryVPTERNLOG()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp36 !GV.hasOneUse()) in shouldConvertToRelLookupTable()
41 if (!GEP || !GEP->hasOneUse()) in shouldConvertToRelLookupTable()
45 if (!Load || !Load->hasOneUse()) in shouldConvertToRelLookupTable()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp106 !Scalar->hasOneUse()) in vectorizeLoadInsert()
120 if (!Load || !Load->isSimple() || !Load->hasOneUse() || in vectorizeLoadInsert()
336 : !Ext0->hasOneUse() || !Ext1->hasOneUse(); in isExtractExtractCheap()
344 !Ext0->hasOneUse() * Extract0Cost + in isExtractExtractCheap()
345 !Ext1->hasOneUse() * Extract1Cost; in isExtractExtractCheap()
475 if (I.hasOneUse()) in foldExtractExtract()
637 (IsConst0 ? 0 : !Ins0->hasOneUse() * InsertCost) + in scalarizeBinopOrCmp()
638 (IsConst1 ? 0 : !Ins1->hasOneUse() * InsertCost); in scalarizeBinopOrCmp()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp451 if (I->hasOneUse() && in getArithmeticInstrCost()
461 if (I->hasOneUse() && I->getOpcode() == Instruction::Xor) in getArithmeticInstrCost()
889 if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() && in getCmpSelInstrCost()
980 if (!Ld->hasOneUse()) in isFoldableLoad()
988 if (UserI->hasOneUse()) { in isFoldableLoad()
1111 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1115 (!LdUser->hasOneUse() || !isa<StoreInst>(*LdUser->user_begin()))) in getMemoryOpCost()
1120 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp88 if (!U->hasOneUse()) in processUse()
96 if (!BCI || !BCI->hasOneUse()) in processUse()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp284 static bool hasOneUse(unsigned Reg, MachineInstr *Def, MachineRegisterInfo &MRI, in hasOneUse() function
287 if (MRI.hasOneUse(Reg)) in hasOneUse()
525 if (MRI.hasOneDef(Reg) && MRI.hasOneUse(Reg)) { in moveForSingleUse()
874 if (CanMove && hasOneUse(Reg, DefI, MRI, MDT, LIS)) { in runOnMachineFunction()
911 if (DefReg != UseReg || !MRI.hasOneUse(DefReg)) in runOnMachineFunction()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DMVELaneInterleavingPass.cpp135 if (T->hasOneUse() && !isa<StoreInst>(*T->user_begin())) { in isProfitableToInterleave()
144 if (!E->hasOneUse() || in isProfitableToInterleave()

1234567