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

123456

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DGuardUtils.cpp67 if (!Cond->hasOneUse())
93 A->hasOneUse()) {
100 B->hasOneUse()) {
H A DCodeMetrics.cpp131 if (!Call->isNoInline() && F->hasInternalLinkage() && F->hasOneUse())
H A DIVDescriptors.cpp90 if (!Phi->hasOneUse())
471 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin())))
482 if (!Cmp->hasOneUse())
527 if (!CI || !CI->hasOneUse())
712 if (Phi->hasOneUse()) {
995 if (!Inst->hasOneUse())
/freebsd-13-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-13-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()) {
1075 (ZeroICmp->hasOneUse() || UnsignedICmp->hasOneUse())) {
1179 if (!Cmp1->hasOneUse())
1266 if (PredL == ICmpInst::ICMP_EQ && PredL == PredR && LHS->hasOneUse() &&
1267 RHS->hasOneUse()) {
1517 !isFreeToInvert(A, A->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())
690 if (Zext->getSrcTy() != NarrowType || !Zext->hasOneUse())
774 if (!I || !I->hasOneUse() || !I->isSameOperationAs(FirstInst))
842 if (!PN->hasOneUse()) return false;
1010 !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
317 // without checking 'hasOneUse' when it matches min/max patterns, so this
320 (!TI->hasOneUse() || !FI->hasOneUse()))
322 } else if (!TI->hasOneUse() || !FI->hasOneUse()) {
340 (TI->hasOneUse() || FI->hasOneUse())) {
351 !TI->hasOneUse() || !F
[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())
1563 if (Cmp.isEquality() && Trunc->hasOneUse()) {
1612 if (Xor->hasOneUse()) {
1720 if (Shift->hasOneUse() && C1.isNullValue() && Cmp.isEquality() &&
1754 if (!And->hasOneUse())
1807 if (!Cmp.isSigned() && C1.isNullValue() && And->getOperand(0)->hasOneUse()
[all...]
H A DInstructionCombining.cpp269 if (!Cast || !Cast->hasOneUse())
283 if (!BinOp2 || !BinOp2->hasOneUse() || BinOp2->getOpcode() != AssocOpcode)
578 if (!V && LHS->hasOneUse() && RHS->hasOneUse())
598 if (!V && LHS->hasOneUse() && RHS->hasOneUse())
797 if (LHS->hasOneUse() && RHS->hasOneUse()) {
803 } else if (LHSIsSelect && LHS->hasOneUse()) {
808 } else if (RHSIsSelect && RHS->hasOneUse()) {
[all...]
H A DInstCombineMulDivRem.cpp54 if (!V->hasOneUse()) return nullptr;
248 if (Op0->hasOneUse()) {
325 if (Div && Div->hasOneUse() &&
379 (Op0->hasOneUse() || Op1->hasOneUse())) {
389 (Op0->hasOneUse() || Op1->hasOneUse())) {
452 (Op0->hasOneUse() || Op1->hasOneUse())) {
520 if (Op0->hasOneUse()
[all...]
H A DInstCombineVectorOps.cpp114 if (!PHIUser->hasOneUse() || !(PHIUser->user_back() == PN) ||
234 if (!X->hasOneUse() || !Ext.getVectorOperand()->hasOneUse())
245 if (!Ext.getVectorOperand()->hasOneUse())
349 if (SrcVec->hasOneUse()) {
448 if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) {
578 if (InsElt->hasOneUse() && isa<InsertElementInst>(InsElt->user_back()))
712 while (V->hasOneUse() && Depth < 10) {
761 if (InsElt.hasOneUse() && isa<InsertElementInst>(InsElt.user_back()))
793 (!CurrIE->hasOneUse()
[all...]
H A DInstCombineAddSub.cpp470 InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) &&
471 (!isa<Constant>(V1) && V1->hasOneUse())) ? 2 : 1;
772 if (!LHS->hasOneUse() && !RHS->hasOneUse())
926 if (C->isOneValue() && Op0->hasOneUse()) {
1256 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) {
1339 if (LHS->hasOneUse() &&
1368 if (SI && SI->hasOneUse()) {
1557 if (LHSConv->hasOneUse() &&
1576 (LHSConv->hasOneUse() || RHSCon
[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)))) {
510 if (!I->hasOneUse()) return false;
751 if (Op0->hasOneUse()) {
764 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() &&
783 if (isLeftShift && Op0BOOp1->hasOneUse() &&
799 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() &&
817 if (isLeftShift && Op0BO->getOperand(0)->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()) {
271 if (CSrc->hasOneUse())
328 if (!V->hasOneUse())
465 if (!TruncOp->hasOneUse() || !isa<IntegerType>(DestType))
646 if (Shuf && Shuf->hasOneUse() && isa<UndefValue>(Shuf->getOperand(1)) &&
670 if (!InsElt || !InsElt->hasOneUse())
790 if (Src->hasOneUse() &&
826 if (Src->hasOneUse()) {
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp97 if (!U->hasOneUse())
105 if (!BCI || !BCI->hasOneUse())
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp94 if (!isa<Constant>(LHS) && !LHS->hasOneUse())
96 if (!isa<Constant>(RHS) && !RHS->hasOneUse())
310 if (!BO || BO->getOpcode() != Instruction::Add || !BO->hasOneUse())
361 if (!Phi->hasOneUse())
368 while (U->hasOneUse() && U->getOpcode() == BO->getOpcode())
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DAbstractCallSite.h147 if (CE->hasOneUse() && CE->isCast())
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DAbstractCallSite.cpp67 if (CE->hasOneUse() && CE->isCast()) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp73 if (!LI->hasOneUse())
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp864 if (Op->hasOneUse() || Op->getNumValues() > 1)
922 if (isSetCCEquivalent(N, N0, N1, N2) && N.getNode()->hasOneUse())
986 if (N0.hasOneUse())
1046 if (N0.hasOneUse()) {
1292 Replace0 &= !N0->hasOneUse();
1293 Replace1 &= (N0 != N1) && !N1->hasOneUse();
1811 if (N->hasOneUse() && N->use_begin()->getOpcode() == ISD::TokenFactor)
1848 if (Op.hasOneUse() && !is_contained(TFs, Op.getNode())) {
2014 if (Sel.getOpcode() != ISD::SELECT || !Sel.hasOneUse()) {
2019 if (Sel.getOpcode() != ISD::SELECT || !Sel.hasOneUse())
3659 N0.getNode()->hasOneUse()) { function
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp442 if (I->hasOneUse() &&
452 if (I->hasOneUse() && I->getOpcode() == Instruction::Xor)
862 if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() &&
953 if (!Ld->hasOneUse())
961 if (UserI->hasOneUse()) {
1083 if (Opcode == Instruction::Load && I->hasOneUse()) {
1087 (!LdUser->hasOneUse() || !isa<StoreInst>(*LdUser->user_begin())))
1092 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp151 if (I && I->hasOneUse() && I->getOpcode() == Opcode)
160 if (I && I->hasOneUse() &&
523 if (!Op->hasOneUse()) {
544 assert(!Op->hasOneUse() && "Only one use, but we got here twice!");
562 if (!Op->hasOneUse())
579 assert(Op->hasOneUse() && "Has uses outside the expression tree!");
944 if (Sub->hasOneUse() &&
1216 if (!Opnd1->getValue()->hasOneUse())
1250 if (Opnd1->getValue()->hasOneUse())
1252 if (Opnd2->getValue()->hasOneUse())
[all...]
H A DMergedLoadStoreMotion.cpp233 return A0 && A1 && A0->isIdenticalTo(A1) && A0->hasOneUse() &&
234 (A0->getParent() == S0->getParent()) && A1->hasOneUse() &&
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp190 : !Ext0->hasOneUse() || !Ext1->hasOneUse();
198 !Ext0->hasOneUse() * Extract0Cost +
199 !Ext1->hasOneUse() * Extract1Cost;
330 if (I.hasOneUse())
486 (IsConst0 ? 0 : !Ins0->hasOneUse() * InsertCost) +
487 (IsConst1 ? 0 : !Ins1->hasOneUse() * InsertCost);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLocalizer.cpp105 if (MRI->hasOneUse(Reg) && !UseMI.isPHI())

Completed in 438 milliseconds

123456