Home
last modified time | relevance | path

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

12345

/freebsd-12.1/contrib/llvm/lib/Target/RISCV/
H A DRISCVMergeBaseOffset.cpp87 !MRI->hasOneUse(HiLUI.getOperand(0).getReg())) in detectLuiAddiGlobal()
95 !MRI->hasOneUse(LoADDI->getOperand(0).getReg())) in detectLuiAddiGlobal()
144 if (!MRI->hasOneUse(Reg)) in matchLargeOffset()
160 !MRI->hasOneUse(OffsetLui.getOperand(0).getReg())) in matchLargeOffset()
183 assert(MRI->hasOneUse(DestReg) && "expected one use for LoADDI"); in detectAndFoldOffset()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp176 if (!Cmp->hasOneUse()) in foldSelectICmpAnd()
319 (!TI->hasOneUse() || !FI->hasOneUse())) in foldSelectOpOp()
321 } else if (!TI->hasOneUse() || !FI->hasOneUse()) { in foldSelectOpOp()
342 !TI->hasOneUse() || !FI->hasOneUse()) in foldSelectOpOp()
449 if (FVI->hasOneUse() && !isa<Constant>(TrueVal)) { in foldSelectIntoOp()
493 if (!(Cmp->hasOneUse() && Cmp->getOperand(0)->hasOneUse() && in foldSelectICmpAndAnd()
602 (IC->hasOneUse() + Or->hasOneUse())) in foldSelectICmpAndOr()
669 if (!TrueVal->hasOneUse()) in canonicalizeSaturatedSubtract()
1218 if (!TI || !FI || !TI->hasOneUse() || !FI->hasOneUse()) in foldAddSubSelect()
1466 if (SI.hasOneUse()) in foldSelectCmpXchg()
[all …]
H A DInstCombineAndOrXor.cpp99 if (!OldLHS->hasOneUse() && !OldRHS->hasOneUse()) in SimplifyBSwap()
127 if (Op->hasOneUse()) { in OptAndOp()
1426 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldAndToXor()
1444 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldOrToXor()
1691 if (Op1->hasOneUse() || IsFreeToInvert(C, C->hasOneUse())) in visitAnd()
1697 if (Op0->hasOneUse() || IsFreeToInvert(C, C->hasOneUse())) in visitAnd()
2049 if (LHS->hasOneUse() || RHS->hasOneUse()) { in foldOrOfICmps()
2300 if (Op0->hasOneUse() || Op1->hasOneUse()) { in visitOr()
2444 if (Op0->hasOneUse() && Op1->hasOneUse() && in visitOr()
2501 if (!Op0->hasOneUse() && !Op1->hasOneUse()) in foldXorToXor()
[all …]
H A DInstCombinePHI.cpp99 if (!PN.hasOneUse()) in FoldIntegerTypedPHI()
169 if (!LoadI->hasOneUse()) in FoldIntegerTypedPHI()
248 (LoadI && LoadI->hasOneUse())) && in FoldIntegerTypedPHI()
297 if (!I || I->getOpcode() != Opc || !I->hasOneUse() || in FoldPHIArgBinOpIntoPHI()
565 if (!LI || !LI->hasOneUse()) in FoldPHIArgLoadIntoPHI()
683 if (Zext->getSrcTy() != NarrowType || !Zext->hasOneUse()) in FoldPHIArgZextsIntoPHI()
767 if (!I || !I->hasOneUse() || !I->isSameOperationAs(FirstInst)) in FoldPHIArgOpIntoPHI()
835 if (!PN->hasOneUse()) return false; in DeadPHICycle()
1137 PN.getIncomingValue(0)->hasOneUse()) in visitPHINode()
1144 if (PN.hasOneUse()) { in visitPHINode()
[all …]
H A DInstructionCombining.cpp542 if (!V && LHS->hasOneUse() && RHS->hasOneUse()) in tryFactorization()
562 if (!V && LHS->hasOneUse() && RHS->hasOneUse()) in tryFactorization()
733 bool SelectsHaveOneUse = LHS->hasOneUse() && RHS->hasOneUse(); in SimplifySelectsFeedingBinaryOp()
819 if (!SI->hasOneUse()) in FoldOpIntoSelect()
854 if (CI->hasOneUse()) { in FoldOpIntoSelect()
897 if (!PN->hasOneUse()) { in foldOpIntoPhi()
1115 !Src.hasOneUse()) in shouldMergeGEPs()
1252 if (!Op->hasOneUse()) in Descale()
1378 LHS->hasOneUse() && RHS->hasOneUse() && in foldVectorBinop()
1414 (LHS->hasOneUse() || RHS->hasOneUse() || LHS == RHS)) { in foldVectorBinop()
[all …]
H A DInstCombineCompares.cpp1638 if (!And->hasOneUse()) in foldICmpAndConstConst()
2319 if (!Sub->hasOneUse()) in foldICmpSubConstant()
2372 if (!Add->hasOneUse()) in foldICmpAddConstant()
2460 if (Cmp.hasOneUse() && in foldICmpSelectConstant()
3160 BO0->hasOneUse() && BO1->hasOneUse()) { in foldICmpBinOp()
3253 (BO0->hasOneUse() || BO1->hasOneUse()) && !I.isUnsigned()) in foldICmpBinOp()
3305 BO0->hasOneUse() && BO1->hasOneUse()) in foldICmpBinOp()
3310 BO0->hasOneUse() && BO1->hasOneUse()) in foldICmpBinOp()
4753 (LHS->hasOneUse() || RHS->hasOneUse())) { in foldVectorCmp()
4825 if (I.hasOneUse()) in visitICmpInst()
[all …]
H A DInstCombineCasts.cpp151 if (!AI.hasOneUse()) { in PromoteCastOfAllocation()
272 if (CSrc->hasOneUse()) in commonCastTransforms()
325 if (!V->hasOneUse()) in canNotEvaluateInType()
760 if (Src->hasOneUse() && in visitTrunc()
787 if (Src->hasOneUse() && in visitTrunc()
805 if (SExt->hasOneUse()) { in visitTrunc()
1119 if (SrcOp->hasOneUse()) in visitZExt()
1186 if (LHS && RHS && LHS->hasOneUse() && RHS->hasOneUse() && in visitZExt()
1252 if (ICI->hasOneUse() && in transformSExtICmp()
1538 if (OpI && OpI->hasOneUse()) { in visitFPTrunc()
[all …]
H A DInstCombineAddSub.cpp471 InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) && in simplify()
776 if (!LHS->hasOneUse() && !RHS->hasOneUse()) in checkForNegativeOperand()
882 if (C->isOneValue() && Op0->hasOneUse()) { in foldAddWithConstant()
1148 if (LHS->hasOneUse() && in visitAdd()
1177 if (SI && SI->hasOneUse()) { in visitAdd()
1323 if (LHSConv->hasOneUse() && in visitFAdd()
1342 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitFAdd()
1429 ((NumNonConstantIndices1 > 0 && !GEP1->hasOneUse()) || in OptimizePointerDifference()
1430 (NumNonConstantIndices2 > 0 && !GEP2->hasOneUse()))) { in OptimizePointerDifference()
1561 if (Op1->hasOneUse()) { in visitSub()
[all …]
H A DInstCombineVectorOps.cpp111 if (!PHIUser->hasOneUse() || !(PHIUser->user_back() == PN) || in scalarizePHI()
231 if (!X->hasOneUse() || !Ext.getVectorOperand()->hasOneUse()) in foldBitcastExtElt()
242 if (!Ext.getVectorOperand()->hasOneUse()) in foldBitcastExtElt()
277 if (SrcVec->hasOneUse() && NumElts != 1) { in visitExtractElementInst()
629 while (V->hasOneUse() && Depth < 10) { in visitInsertValueInst()
673 if (InsElt.hasOneUse() && isa<InsertElementInst>(InsElt.user_back())) in foldInsSequenceIntoBroadcast()
741 if (!InsElt1 || !InsElt1->hasOneUse()) in hoistInsEltConst()
765 if (!Inst || !Inst->hasOneUse()) in foldConstantInsEltIntoShuffle()
906 if (!Insert.hasOneUse()) in visitInsertElementInst()
967 if (!I->hasOneUse()) in canEvaluateShuffled()
[all …]
H A DInstCombineShifts.cpp56 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms()
158 if (!I->hasOneUse()) return false; in canEvaluateShifted()
423 if (Op0->hasOneUse()) { in FoldShiftByConstant()
436 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() && in FoldShiftByConstant()
455 if (isLeftShift && Op0BOOp1->hasOneUse() && in FoldShiftByConstant()
471 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
489 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
782 if (Op0->hasOneUse()) { in visitLShr()
789 if (ShAmt == BitWidth - SrcTyBitWidth && Op0->hasOneUse()) { in visitLShr()
H A DInstCombineMulDivRem.cpp55 if (!V->hasOneUse()) return nullptr; in simplifyValueKnownNonZero()
198 if (Op0->hasOneUse()) { in visitMul()
263 if (Div && Div->hasOneUse() && in visitMul()
413 if (Op0->hasOneUse() && C1DivC->isNormalFP()) in visitFMul()
518 if (SI->use_empty() && SelectCond->hasOneUse()) in simplifyDivRemOfSelectWithZeroOp()
839 X->getType() == Y->getType() && (N->hasOneUse() || D->hasOneUse())) { in narrowUDivURem()
1149 if (I.hasAllowReassoc() && Op0->hasOneUse() && Op1->hasOneUse()) { in visitFDiv()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp159 if (I && I->hasOneUse() && in isReassociableOp()
516 if (!Op->hasOneUse()) { in LinearizeExprTree()
555 if (!Op->hasOneUse()) in LinearizeExprTree()
915 if (Sub->hasOneUse() && in ShouldBreakUpSubtract()
1184 if (!Opnd1->getValue()->hasOneUse()) in CombineXorOpnd()
1218 if (Opnd1->getValue()->hasOneUse()) in CombineXorOpnd()
1220 if (Opnd2->getValue()->hasOneUse()) in CombineXorOpnd()
2011 (I->hasOneUse() && in OptimizeInst()
2055 (!I->hasOneUse() || in OptimizeInst()
2079 (!I->hasOneUse() || in OptimizeInst()
[all …]
H A DMergedLoadStoreMotion.cpp230 if (A0 && A1 && A0->isIdenticalTo(A1) && A0->hasOneUse() && in sinkStore()
231 (A0->getParent() == S0->getParent()) && A1->hasOneUse() && in sinkStore()
H A 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()
1174 if (UU->hasOneUse()) { in validate()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp3846 if (!N0.hasOneUse() && !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
3870 if (!N0.hasOneUse() && !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
3894 if (!N0.hasOneUse() || !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
3903 if (!N0.hasOneUse() || !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
3947 if (!SVN0->hasOneUse() || !SVN1->hasOneUse() || in hoistLogicOpWithSameOpcodeHands()
4068 N0.hasOneUse() && N1.hasOneUse()) { in foldLogicOfSetCCs()
6398 if (N->hasOneUse() && N->getOperand(0).hasOneUse()) { in distributeTruncateThroughAnd()
8421 if (!N0.hasOneUse() || !N1.hasOneUse()) in CombineZExtLogicopShiftLoad()
10543 N0->hasOneUse() && N0.getOperand(2)->hasOneUse()) { in visitFADDForFMACombine()
18282 !LHS.hasOneUse() || !RHS.hasOneUse()) in SimplifySelectOps()
[all …]
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DIVDescriptors.cpp91 if (!Phi->hasOneUse()) in lookThroughAnd()
465 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin()))) in isMinMaxSelectCmpPattern()
476 if (!Cmp->hasOneUse()) in isMinMaxSelectCmpPattern()
521 if (!CI || !CI->hasOneUse()) in isConditionalRdxPattern()
699 if (Phi->hasOneUse()) { in isFirstOrderRecurrence()
701 if (I->isCast() && (I->getParent() == Phi->getParent()) && I->hasOneUse() && in isFirstOrderRecurrence()
967 if (!Inst->hasOneUse()) in getCastsForInductionPHI()
H A DCodeMetrics.cpp136 if (!CS.isNoInline() && F->hasInternalLinkage() && F->hasOneUse()) in analyzeBasicBlock()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp98 if (!U->hasOneUse()) in processUse()
106 if (!BCI || !BCI->hasOneUse()) in processUse()
H A DSIFixWWMLiveness.cpp239 if (DomDefBlock->succ_size() == 2 && MRI->hasOneUse(Reg)) { in processDef()
289 if (!MRI->hasOneUse(Reg)) in processDef()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp848 if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() && in getCmpSelInstrCost()
890 if (!Ld->hasOneUse()) in isFoldableLoad()
898 if (UserI->hasOneUse()) { in isFoldableLoad()
1014 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1018 (!LdUser->hasOneUse() || !isa<StoreInst>(*LdUser->user_begin()))) in getMemoryOpCost()
1023 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp523 if (!N.hasOneUse()) in IsProfitableToFold()
701 if (!Chain.hasOneUse()) in isCalleeLoad()
717 Callee.getValue(1).hasOneUse()) in isCalleeLoad()
1299 !Shift.hasOneUse()) in foldMaskAndShiftToExtract()
1347 if (!N.hasOneUse() || !Shift.hasOneUse()) in foldMaskedShiftToScaledMask()
1496 !Shift.hasOneUse() || !N.hasOneUse()) in foldMaskedShiftToBEXTR()
1737 if (!RHS.getNode()->hasOneUse() || in matchAddressRecursively()
1962 if (!User->hasOneUse()) in hasSingleUsesFromRoot()
2470 if (!Load.hasOneUse()) in isFusableLoadOpStorePattern()
3061 if (!N0->hasOneUse()) in matchBEXTRFromAndImm()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h301 if (MRI.hasOneUse(PrevRegSrc)) { in markInstAndDefDead()
311 if (PrevMI == &DefMI && MRI.hasOneUse(DefMI.getOperand(0).getReg())) in markInstAndDefDead()
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp74 if (!LI->hasOneUse()) in runOnFunction()
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp357 N1.hasOneUse() && in tryIndexedBinOp()
398 if (Node->hasOneUse()) { in Select()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1176 if (AddI->hasOneUse()) in CombineUAddWithOverflow()
1290 if (AndI->hasOneUse() && in sinkAndCmp0Expression()
1298 AndI->getOperand(0)->hasOneUse() && AndI->getOperand(1)->hasOneUse()) in sinkAndCmp0Expression()
1728 if (!ExtVal || !ExtVal->hasOneUse() || in optimizeCallInst()
3613 if (ExtInst->hasOneUse()) { in canGetThrough()
3753 if (!ExtOpnd->hasOneUse()) { in promoteOperandForOther()
4178 if (I->hasOneUse() || in matchAddr()
5417 if (Src->hasOneUse()) in optimizeExtUses()
5539 if (Load->hasOneUse() && in optimizeLoadExt()
5699 if (!Cmp || !Cmp->hasOneUse()) in isFormingBranchFromSelectProfitable()
[all …]

12345