Searched refs:hasOneUse (Results 1 - 25 of 123) sorted by relevance

12345

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DGuardUtils.cpp67 if (!Cond->hasOneUse())
93 A->hasOneUse()) {
100 B->hasOneUse()) {
H A DCodeMetrics.cpp132 if (!Call->isNoInline() && F->hasInternalLinkage() && F->hasOneUse())
H A DIVDescriptors.cpp89 if (!Phi->hasOneUse())
470 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin())))
481 if (!Cmp->hasOneUse())
526 if (!CI || !CI->hasOneUse())
711 if (Phi->hasOneUse()) {
994 if (!Inst->hasOneUse())
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVMergeBaseOffset.cpp86 !MRI->hasOneUse(HiLUI.getOperand(0).getReg()))
94 !MRI->hasOneUse(LoADDI->getOperand(0).getReg()))
143 if (!MRI->hasOneUse(Reg))
159 !MRI->hasOneUse(OffsetLui.getOperand(0).getReg()))
182 assert(MRI->hasOneUse(DestReg) && "expected one use for LoADDI");
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp97 if (!U->hasOneUse())
105 if (!BCI || !BCI->hasOneUse())
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp98 if (!OldLHS->hasOneUse() && !OldRHS->hasOneUse())
103 if (!OldLHS->hasOneUse())
126 if (Op->hasOneUse()) {
1074 (ZeroICmp->hasOneUse() || UnsignedICmp->hasOneUse())) {
1219 if (PredL == ICmpInst::ICMP_EQ && PredL == PredR && LHS->hasOneUse() &&
1220 RHS->hasOneUse()) {
1470 !isFreeToInvert(A, A->hasOneUse()) &&
1471 !isFreeToInvert(B, B->hasOneUse())) {
[all...]
H A DInstCombineCasts.cpp103 if (!AI.hasOneUse() && CastElTyAlign == AllocElTyAlign) return nullptr;
113 if (!AI.hasOneUse() && CastElTyStoreSize < AllocElTyStoreSize) return nullptr;
151 if (!AI.hasOneUse()) {
272 if (CSrc->hasOneUse())
325 if (!V->hasOneUse())
460 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType))
641 if (Shuf && Shuf->hasOneUse() && isa<UndefValue>(Shuf->getOperand(1)) &&
665 if (!InsElt || !InsElt->hasOneUse())
760 if (Src->hasOneUse() &&
787 if (Src->hasOneUse()
[all...]
H A DInstCombinePHI.cpp99 if (!PN.hasOneUse())
169 if (!LoadI->hasOneUse())
257 (LoadI && LoadI->hasOneUse())) &&
308 if (!I || I->getOpcode() != Opc || !I->hasOneUse() ||
407 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
576 if (!LI || !LI->hasOneUse())
695 if (Zext->getSrcTy() != NarrowType || !Zext->hasOneUse())
779 if (!I || !I->hasOneUse() || !I->isSameOperationAs(FirstInst))
847 if (!PN->hasOneUse()) return false;
1015 !UserI->hasOneUse() || !is
[all...]
H A DInstCombineSelect.cpp175 if (!Cmp->hasOneUse())
284 // Don't break up min/max patterns. The hasOneUse checks below prevent that
316 // without checking 'hasOneUse' when it matches min/max patterns, so this
319 (!TI->hasOneUse() || !FI->hasOneUse()))
321 } else if (!TI->hasOneUse() || !FI->hasOneUse()) {
339 (TI->hasOneUse() || FI->hasOneUse())) {
354 !TI->hasOneUse() || !F
[all...]
H A DInstructionCombining.cpp272 if (!Cast || !Cast->hasOneUse())
286 if (!BinOp2 || !BinOp2->hasOneUse() || BinOp2->getOpcode() != AssocOpcode)
581 if (!V && LHS->hasOneUse() && RHS->hasOneUse())
601 if (!V && LHS->hasOneUse() && RHS->hasOneUse())
800 if (LHS->hasOneUse() && RHS->hasOneUse()) {
806 } else if (LHSIsSelect && LHS->hasOneUse()) {
811 } else if (RHSIsSelect && RHS->hasOneUse()) {
[all...]
H A DInstCombineAddSub.cpp470 InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) &&
471 (!isa<Constant>(V1) && V1->hasOneUse())) ? 2 : 1;
775 if (!LHS->hasOneUse() && !RHS->hasOneUse())
929 if (C->isOneValue() && Op0->hasOneUse()) {
1260 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) {
1324 if (LHS->hasOneUse() &&
1353 if (SI && SI->hasOneUse()) {
1541 if (LHSConv->hasOneUse() &&
1560 (LHSConv->hasOneUse() || RHSCon
[all...]
H A DInstCombineCompares.cpp930 (GEPLHS->hasAllConstantIndices() || GEPLHS->hasOneUse()) &&
931 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) &&
1010 if (GEPsInBounds && (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) &&
1011 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) {
1266 if (!AddWithCst->hasOneUse())
1541 if (Cmp.isEquality() && Trunc->hasOneUse()) {
1593 if (Xor->hasOneUse()) {
1699 if (Shift->hasOneUse() && C1.isNullValue() && Cmp.isEquality() &&
1734 if (!And->hasOneUse())
1787 if (!Cmp.isSigned() && C1.isNullValue() && And->getOperand(0)->hasOneUse()
[all...]
H A DInstCombineVectorOps.cpp110 if (!PHIUser->hasOneUse() || !(PHIUser->user_back() == PN) ||
230 if (!X->hasOneUse() || !Ext.getVectorOperand()->hasOneUse())
241 if (!Ext.getVectorOperand()->hasOneUse())
340 if (SrcVec->hasOneUse()) {
433 if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) {
569 if (InsElt->hasOneUse() && isa<InsertElementInst>(InsElt->user_back()))
707 while (V->hasOneUse() && Depth < 10) {
750 if (InsElt.hasOneUse() && isa<InsertElementInst>(InsElt.user_back()))
778 (!CurrIE->hasOneUse()
[all...]
H A DInstCombineMulDivRem.cpp54 if (!V->hasOneUse()) return nullptr;
241 if (Op0->hasOneUse()) {
309 if (Div && Div->hasOneUse() &&
454 if (Op0->hasOneUse() && C1DivC->isNormalFP())
517 (Op0->hasOneUse() || Op1->hasOneUse())) {
527 (Op0->hasOneUse() || Op1->hasOneUse())) {
606 if (SI->use_empty() && SelectCond->hasOneUse())
927 X->getType() == Y->getType() && (N->hasOneUse() ||
[all...]
H A DInstCombineShifts.cpp192 !Trunc->hasOneUse())
296 if (!Masked->hasOneUse())
327 if (!LogicInst || !LogicInst->isBitwiseLogicOp() || !LogicInst->hasOneUse())
406 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) {
511 if (!I->hasOneUse()) return false;
758 if (Op0->hasOneUse()) {
771 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() &&
790 if (isLeftShift && Op0BOOp1->hasOneUse() &&
806 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() &&
824 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse()
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp73 if (!LI->hasOneUse())
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp474 if (I->hasOneUse() &&
484 if (I->hasOneUse() && I->getOpcode() == Instruction::Xor)
868 if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() &&
910 if (!Ld->hasOneUse())
918 if (UserI->hasOneUse()) {
1035 if (Opcode == Instruction::Load && I->hasOneUse()) {
1039 (!LdUser->hasOneUse() || !isa<StoreInst>(*LdUser->user_begin())))
1044 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal))
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp150 if (I && I->hasOneUse() && I->getOpcode() == Opcode)
159 if (I && I->hasOneUse() &&
522 if (!Op->hasOneUse()) {
543 assert(!Op->hasOneUse() && "Only one use, but we got here twice!");
561 if (!Op->hasOneUse())
578 assert(Op->hasOneUse() && "Has uses outside the expression tree!");
943 if (Sub->hasOneUse() &&
1212 if (!Opnd1->getValue()->hasOneUse())
1246 if (Opnd1->getValue()->hasOneUse())
1248 if (Opnd2->getValue()->hasOneUse())
[all...]
H A DMergedLoadStoreMotion.cpp233 return A0 && A1 && A0->isIdenticalTo(A1) && A0->hasOneUse() &&
234 (A0->getParent() == S0->getParent()) && A1->hasOneUse() &&
H A DLoopRerollPass.cpp474 return I->hasOneUse() && TI->getOperand(0) == I;
555 if (BO->hasNoSignedWrap() && UUser && UUser->hasOneUse() &&
622 if (C->hasOneUse()) {
632 } while (C->hasOneUse());
712 if (Op->hasOneUse() && L->contains(Op) && !Exclude.count(Op) &&
1184 if (UU->hasOneUse()) {
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp796 if (Op->hasOneUse() || Op->getNumValues() > 1)
845 if (isSetCCEquivalent(N, N0, N1, N2) && N.getNode()->hasOneUse())
909 if (N0.hasOneUse())
972 if (N0.hasOneUse()) {
1222 Replace0 &= !N0->hasOneUse();
1223 Replace1 &= (N0 != N1) && !N1->hasOneUse();
1737 if (N->hasOneUse() && N->use_begin()->getOpcode() == ISD::TokenFactor)
1774 if (Op.hasOneUse() && !is_contained(TFs, Op.getNode())) {
1940 if (Sel.getOpcode() != ISD::SELECT || !Sel.hasOneUse()) {
1945 if (Sel.getOpcode() != ISD::SELECT || !Sel.hasOneUse())
3574 N0.getNode()->hasOneUse()) { function
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp353 N1.hasOneUse() &&
394 if (Node->hasOneUse()) {
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp581 if (!N.hasOneUse())
769 if (Callee.getNode() == Chain.getNode() || !Callee.hasOneUse())
780 if (!Chain.hasOneUse())
796 Callee.getValue(1).hasOneUse())
1637 !Shift.hasOneUse())
1688 if (Shift.getOpcode() == ISD::ANY_EXTEND && Shift.hasOneUse() &&
1704 if (!N.hasOneUse() || !Shift.hasOneUse())
1771 if (Shift.getOpcode() != ISD::SRL || !Shift.hasOneUse() ||
1861 !Shift.hasOneUse() || !
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLocalizer.cpp152 if (MRI->hasOneUse(Reg) && !UseMI.isPHI())
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.h140 bool hasOneUse(const SDNode *N) const;

Completed in 402 milliseconds

12345