Home
last modified time | relevance | path

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

1234567

/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp300 (!TI->hasOneUse() || !FI->hasOneUse())) in foldSelectOpOp()
302 } else if (!TI->hasOneUse() || !FI->hasOneUse()) { in foldSelectOpOp()
357 if (TI->hasOneUse() || FI->hasOneUse()) { in foldSelectOpOp()
417 !TI->hasOneUse() || !FI->hasOneUse()) in foldSelectOpOp()
690 (IC->hasOneUse() + Or->hasOneUse())) in foldSelectICmpAndOr()
1034 if (II->hasOneUse() && SelectArg->hasOneUse() && in foldSelectCttzCtlz()
1144 if (!Cmp.hasOneUse() && !RHS->hasOneUse()) in canonicalizeSPF()
2390 (Cond->hasOneUse() || TVal->hasOneUse() || FVal->hasOneUse())) in foldVectorSelect()
2399 (Cond->hasOneUse() || FVal->hasOneUse())) in foldVectorSelect()
2949 (CondVal->hasOneUse() || TrueVal->hasOneUse()) && in foldSelectOfBools()
[all …]
H A DInstCombineAndOrXor.cpp70 if (!OldLHS->hasOneUse() && !OldRHS->hasOneUse()) in SimplifyBSwap()
1049 if (!Cmp0->hasOneUse() || !Cmp1->hasOneUse()) in foldEqOfParts()
1627 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldAndToXor()
1645 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldOrToXor()
1653 if (Op0->hasOneUse() || Op1->hasOneUse()) in foldOrToXor()
2733 !(LHS->hasOneUse() || RHS->hasOneUse())) in foldAndOrOfICmpEqZeroAndICmp()
2909 (RHS->hasOneUse() || LHS->hasOneUse())) { in foldAndOrOfICmps()
3080 if (Op0->hasOneUse() || Op1->hasOneUse()) { in visitOr()
3103 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitOr()
3349 (Ov->hasOneUse() || (MulIsNotZero->hasOneUse() && Mul->hasOneUse())) && in visitOr()
[all …]
H A DInstCombineVectorOps.cpp257 if (X->hasOneUse() && Ext.getVectorOperand()->hasOneUse()) { in foldBitcastExtElt()
293 if (!X->hasOneUse() || !Ext.getVectorOperand()->hasOneUse()) in foldBitcastExtElt()
1494 if (!Vec->hasOneUse()) in narrowInsElt()
1631 (VecOp->hasOneUse() || ScalarOp->hasOneUse()) && in visitInsertElementInst()
1669 if (!Insert.hasOneUse()) in visitInsertElementInst()
1741 if (!I->hasOneUse()) in canEvaluateShuffled()
2293 if (!B0->hasOneUse() && !B1->hasOneUse()) in foldSelectShuffle()
2432 if (FNeg0->hasOneUse() || FNeg1->hasOneUse()) { in foldFNegShuffle()
2482 if (!Cast0->hasOneUse() && !Cast1->hasOneUse()) in foldCastShuffle()
2514 if (!Op0->hasOneUse()) in foldIdentityExtractShuffle()
[all …]
H A DInstructionCombining.cpp665 if (!V && (LHS->hasOneUse() || RHS->hasOneUse())) in tryFactorization()
685 if (!V && (LHS->hasOneUse() || RHS->hasOneUse())) in tryFactorization()
918 if (LHS->hasOneUse() && RHS->hasOneUse()) { in SimplifySelectsFeedingBinaryOp()
1186 if (!PN->hasOneUse()) { in foldOpIntoPhi()
1303 if (!Phi0 || !Phi1 || !Phi0->hasOneUse() || !Phi1->hasOneUse() || in foldBinopWithPhiOperands()
1404 !Src.hasOneUse()) in shouldMergeGEPs()
1669 LHS->hasOneUse() && RHS->hasOneUse() && in foldVectorBinop()
1703 (LHS->hasOneUse() || RHS->hasOneUse() || in foldVectorBinop()
1733 (LHS->hasOneUse() || RHS->hasOneUse() || LHS == RHS)) { in foldVectorBinop()
1918 (Op0->hasOneUse() || Op1->hasOneUse()))) { in narrowMathIfNoOverflow()
[all …]
H A DInstCombineAddSub.cpp758 if (!LHS->hasOneUse() && !RHS->hasOneUse()) in checkForNegativeOperand()
942 if (Op0->hasOneUse() && *C2 == -(*C)) { in foldAddWithConstant()
958 if (C->isOne() && Op0->hasOneUse()) { in foldAddWithConstant()
1273 if (!Op0 || !Op1 || !(Op0->hasOneUse() || Op1->hasOneUse())) in factorizeMathWithShlOps()
1420 (LHS->hasOneUse() || RHS->hasOneUse())) { in visitAdd()
1609 if (!Op0->hasOneUse() || !Op1->hasOneUse()) in factorizeFAddFSub()
1714 if (LHSConv->hasOneUse() && in visitFAdd()
1733 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitFAdd()
1885 (Op0->hasOneUse() || Op1->hasOneUse())) { in foldSubOfMinMax()
2157 (Op0->hasOneUse() || Op1->hasOneUse())) in visitSub()
[all …]
H A DInstCombineShifts.cpp198 !Trunc->hasOneUse()) in dropRedundantMaskingOfLeftShiftInput()
302 if (!Masked->hasOneUse()) in dropRedundantMaskingOfLeftShiftInput()
537 if (!I->hasOneUse()) return false; in canEvaluateShifted()
775 if (!Op0->hasOneUse()) in FoldShiftByConstant()
880 if (!Add->hasOneUse()) { in foldLShrOverflowBit()
903 if (!Add->hasOneUse()) in foldLShrOverflowBit()
1199 if (Op0->hasOneUse()) { in visitLShr()
1214 if (Op0->hasOneUse()) { in visitLShr()
1262 Op0->hasOneUse()) { in visitLShr()
1341 if (Op0->hasOneUse()) { in visitLShr()
[all …]
H A DInstCombineCompares.cpp1710 if (!And->hasOneUse()) in foldICmpAndConstConst()
2668 if (!Sub->hasOneUse()) in foldICmpSubConstant()
2787 if (!Add->hasOneUse()) in foldICmpAddConstant()
2881 if (Cmp.hasOneUse() && in foldICmpSelectConstant()
4230 (BO0->hasOneUse() || BO1->hasOneUse()) && !I.isUnsigned()) { in foldICmpBinOp()
4647 (Op0->hasOneUse() || Op1->hasOneUse())) { in foldICmpEquality()
4765 (I.getOperand(0)->hasOneUse() || I.getOperand(1)->hasOneUse())) { in foldICmpEquality()
6006 (LHS->hasOneUse() || RHS->hasOneUse())) in foldVectorCmp()
6026 V1Ty == V2->getType() && (LHS->hasOneUse() || RHS->hasOneUse())) { in foldVectorCmp()
6219 if (I.hasOneUse()) in visitICmpInst()
[all …]
H A DInstCombineCasts.cpp178 if (!AI.hasOneUse()) { in PromoteCastOfAllocation()
304 if (CSrc->hasOneUse()) in commonCastTransforms()
379 if (!V->hasOneUse()) in canNotEvaluateInType()
918 if (Src->hasOneUse()) { in visitTrunc()
938 if (Src->hasOneUse() && in visitTrunc()
1256 if (SrcOp->hasOneUse()) in visitZExt()
1386 if (Cmp->hasOneUse() && in transformSExtICmp()
1554 if (Src->hasOneUse() && in visitSExt()
1782 if (BO && BO->hasOneUse()) { in visitFPTrunc()
1913 if (!Src->hasOneUse()) in visitFPTrunc()
[all …]
H A DInstCombineMulDivRem.cpp51 if (!V->hasOneUse()) return nullptr; in simplifyValueKnownNonZero()
255 if (Op0->hasOneUse() && match(Op1, m_NegatedPower2())) { in visitMul()
358 if (Div && Div->hasOneUse() && in visitMul()
403 (Op0->hasOneUse() || Op1->hasOneUse() || X == Y)) { in visitMul()
413 (Op0->hasOneUse() || Op1->hasOneUse())) { in visitMul()
509 (Op0->hasOneUse() || Op1->hasOneUse())) { in foldFPSignBitOps()
801 if (SI->use_empty() && SelectCond->hasOneUse()) in simplifyDivRemOfSelectWithZeroOp()
898 if (IsSigned && HasNSW && (Op0->hasOneUse() || Op1->hasOneUse())) { in foldIDivShl()
1082 if (!IsSigned && Op1->hasOneUse() && in commonIDivTransforms()
1206 X->getType() == Y->getType() && (N->hasOneUse() || D->hasOneUse())) { in narrowUDivURem()
[all …]
H A DInstCombineCalls.cpp113 if (!Src->hasOneUse()) in hasUndefSource()
636 if (Op0->hasOneUse() && in foldCtpop()
921 if (!MinMax2->hasOneUse() || !AddSub->hasOneUse()) in matchSAddSubSat()
1053 (!LHS->hasOneUse() && !RHS->hasOneUse())) in factorizeMinMaxTree()
1064 if (LHS->hasOneUse()) { in factorizeMinMaxTree()
1331 (I0->hasOneUse() || I1->hasOneUse()) && X->getType() == Y->getType()) { in visitCallInst()
1337 I0->hasOneUse()) { in visitCallInst()
1353 (I0->hasOneUse() || I1->hasOneUse()) && X->getType() == Y->getType()) { in visitCallInst()
1373 (I0->hasOneUse() || I1->hasOneUse())) { in visitCallInst()
1416 if (I0->hasOneUse() && !I1->hasOneUse()) in visitCallInst()
[all …]
H A DInstCombinePHI.cpp109 if (!PN.hasOneUse()) in foldIntegerTypedPHI()
180 if (!LoadI->hasOneUse()) in foldIntegerTypedPHI()
266 (LoadI && LoadI->hasOneUse())) && in foldIntegerTypedPHI()
979 if (!PN->hasOneUse()) return false; in isDeadPHICycle()
1156 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI()
1421 if (PN.hasOneUse()) { in visitPHINode()
1439 if (PHIUser->hasOneUse() && in visitPHINode()
H A DInstCombineNegator.cpp158 if (!V->hasOneUse() && !IsTrulyNegation) in visitImpl()
235 (I->hasOneUse() || match(I->getOperand(0), m_ImmConstant()))) { in visitImpl()
245 if (!V->hasOneUse()) in visitImpl()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DGuardUtils.cpp67 if (!Cond->hasOneUse()) in parseWidenableBranch()
93 A->hasOneUse()) { in parseWidenableBranch()
100 B->hasOneUse()) { in parseWidenableBranch()
/openbsd/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVMergeBaseOffset.cpp104 if (!MRI->hasOneUse(HiDestReg)) in INITIALIZE_PASS()
182 if (!MRI->hasOneUse(Reg)) in foldLargeOffset()
199 !MRI->hasOneUse(OffsetLui.getOperand(0).getReg())) in foldLargeOffset()
254 if (!MRI->hasOneUse(Rs1)) in foldShiftedOffset()
291 if (!MRI->hasOneUse(DestReg)) in detectAndFoldOffset()
307 if (MRI->hasOneUse(TailDestReg)) { in detectAndFoldOffset()
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp2575 N0->hasOneUse() && N1->hasOneUse()) { in visitADDLike()
5335 if (!N0.hasOneUse() && !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
5359 if (!N0.hasOneUse() && !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
5383 if (!N0.hasOneUse() || !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
5392 if (!N0.hasOneUse() || !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
5403 if (!N0.hasOneUse() || !N1.hasOneUse()) in hoistLogicOpWithSameOpcodeHands()
5574 N0.hasOneUse() && N1.hasOneUse()) { in foldLogicOfSetCCs()
6703 if (!N0->hasOneUse() || !N1->hasOneUse()) in MatchBSwapHWordLow()
6895 if (!N0->hasOneUse() || !N1->hasOneUse()) in matchBSwapHWordOrAndAnd()
12084 if (!N0.hasOneUse() || !N1.hasOneUse()) in CombineZExtLogicopShiftLoad()
[all …]
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp33 !GV.hasOneUse()) in shouldConvertToRelLookupTable()
38 if (!GEP || !GEP->hasOneUse() || in shouldConvertToRelLookupTable()
43 if (!Load || !Load->hasOneUse() || in shouldConvertToRelLookupTable()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp167 if (BO && BO->hasOneUse() && in isReassociableOp()
531 if (!Op->hasOneUse()) { in LinearizeExprTree()
570 if (!Op->hasOneUse()) in LinearizeExprTree()
1044 if (Sub->hasOneUse() && in ShouldBreakUpSubtract()
1315 if (!Opnd1->getValue()->hasOneUse()) in CombineXorOpnd()
1349 if (Opnd1->getValue()->hasOneUse()) in CombineXorOpnd()
1351 if (Opnd2->getValue()->hasOneUse()) in CombineXorOpnd()
2197 (I->hasOneUse() && in OptimizeInst()
2255 (!I->hasOneUse() || in OptimizeInst()
2282 (!I->hasOneUse() || in OptimizeInst()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp140 if (!isa<Constant>(LHS) && !LHS->hasOneUse()) in tryMAddReplacement()
142 if (!isa<Constant>(RHS) && !RHS->hasOneUse()) in tryMAddReplacement()
363 if (!BO || BO->getOpcode() != Instruction::Add || !BO->hasOneUse()) in matchAddReduction()
418 if (!Phi->hasOneUse()) in isReachableFromPHI()
425 while (U->hasOneUse() && U->getOpcode() == BO->getOpcode()) in isReachableFromPHI()
H A DX86ISelDAGToDAG.cpp627 if (!N.hasOneUse()) in IsProfitableToFold()
783 return N->getOperand(1).hasOneUse(); in isProfitableToFormMaskedOp()
839 if (!Chain.hasOneUse()) in isCalleeLoad()
855 Callee.getValue(1).hasOneUse()) in isCalleeLoad()
1918 !Shift.hasOneUse()) in foldMaskAndShiftToExtract()
1985 if (!N.hasOneUse() || !Shift.hasOneUse()) in foldMaskedShiftToScaledMask()
2142 !Shift.hasOneUse() || !N.hasOneUse()) in foldMaskedShiftToBEXTR()
3128 if (!Load.hasOneUse()) in isFusableLoadOpStorePattern()
3815 if (!N0->hasOneUse()) in matchBEXTRFromAndImm()
4361 if (!Op.hasOneUse()) in tryVPTERNLOG()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp486 if (I->hasOneUse() && in getArithmeticInstrCost()
496 if (I->hasOneUse() && I->getOpcode() == Instruction::Xor) in getArithmeticInstrCost()
936 if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() && in getCmpSelInstrCost()
1029 if (!Ld->hasOneUse()) in isFoldableLoad()
1037 if (UserI->hasOneUse()) { in isFoldableLoad()
1161 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1165 (!LdUser->hasOneUse() || !isa<StoreInst>(*LdUser->user_begin()))) in getMemoryOpCost()
1170 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp108 if (!U->hasOneUse()) in processUse()
122 if (!BCI->hasOneUse()) in processUse()
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp283 static bool hasOneUse(unsigned Reg, MachineInstr *Def, MachineRegisterInfo &MRI, in hasOneUse() function
286 if (MRI.hasOneUse(Reg)) in hasOneUse()
532 if (MRI.hasOneDef(Reg) && MRI.hasOneUse(Reg)) { in moveForSingleUse()
879 if (CanMove && hasOneUse(Reg, DefI, MRI, MDT, LIS)) { in runOnMachineFunction()
916 if (DefReg != UseReg || !MRI.hasOneUse(DefReg)) in runOnMachineFunction()
/openbsd/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp257 if (MRI.hasOneUse(Reg)) { in generateAssignInstrs()
333 assert(MI.getNumDefs() > 0 && MRI.hasOneUse(MI.getOperand(0).getReg())); in processInstr()
380 if (Opcode == TargetOpcode::G_CONSTANT && MRI.hasOneUse(DstReg)) { in processInstrsWithTypeFolding()
497 MRI.hasOneUse(Dst) && MRI.hasOneDef(CompareReg)); in processSwitches()
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DMVELaneInterleavingPass.cpp136 if (T->hasOneUse() && !isa<StoreInst>(*T->user_begin())) { in isProfitableToInterleave()
145 if (!E->hasOneUse() || in isProfitableToInterleave()
/openbsd/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp138 if (!Load || !Load->isSimple() || !Load->hasOneUse() || in canWidenLoad()
160 !Scalar->hasOneUse()) in vectorizeLoadInsert()
444 : !Ext0->hasOneUse() || !Ext1->hasOneUse(); in isExtractExtractCheap()
452 !Ext0->hasOneUse() * Extract0Cost + in isExtractExtractCheap()
453 !Ext1->hasOneUse() * Extract1Cost; in isExtractExtractCheap()
587 if (I.hasOneUse()) in foldExtractExtract()
662 if (Extract->hasOneUse()) in foldInsExtFNeg()
817 (IsConst0 ? 0 : !Ins0->hasOneUse() * InsertCost) + in scalarizeBinopOrCmp()
818 (IsConst1 ? 0 : !Ins1->hasOneUse() * InsertCost); in scalarizeBinopOrCmp()

1234567