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

123

/external/llvm/lib/Analysis/
H A DCodeMetrics.cpp39 if (!CS.isNoInline() && F->hasInternalLinkage() && F->hasOneUse())
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp655 (GEPLHS->hasAllConstantIndices() || GEPLHS->hasOneUse()) &&
656 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) &&
728 (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) &&
729 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) {
1032 if (Shr->hasOneUse() && Shr->isExact())
1035 if (Shr->hasOneUse()) {
1057 if (ICI.isEquality() && LHSI->hasOneUse()) {
1106 if (LHSI->hasOneUse()) {
1143 if (LHSI->hasOneUse() && isa<ConstantInt>(LHSI->getOperand(1)) &&
1144 LHSI->getOperand(0)->hasOneUse()) {
[all...]
H A DInstCombineAndOrXor.cpp38 return CI->hasOneUse();
134 if (Op->hasOneUse()) {
142 if (Op->hasOneUse()){
164 if (Op->hasOneUse()) {
240 if (Op->hasOneUse()) {
838 LHS->hasOneUse() && RHS->hasOneUse()) {
1136 if (!Op0I->hasOneUse()) break;
1174 if (Op0I->hasOneUse() && !match(Op0LHS, m_Zero())) {
1232 if (Op0->hasOneUse()
[all...]
H A DInstCombinePHI.cpp48 if (!I || I->getOpcode() != Opc || !I->hasOneUse() ||
151 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
320 if (!LI || !LI->hasOneUse())
437 if (!I || !I->hasOneUse() || !I->isSameOperationAs(FirstInst))
511 if (!PN->hasOneUse()) return false;
670 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) ||
800 // FIXME: The hasOneUse check will fail for PHIs that use the value more
802 PN.getIncomingValue(0)->hasOneUse())
809 if (PN.hasOneUse()) {
824 if (PHIUser->hasOneUse()
[all...]
H A DInstCombineAddSub.cpp560 InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) &&
561 (!isa<Constant>(V1) && V1->hasOneUse())) ? 2 : 1;
970 if (!LHS->hasOneUse() && !RHS->hasOneUse())
1079 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) {
1158 if (LHS->hasOneUse() &&
1192 if (SI && SI->hasOneUse()) {
1216 if (LHSConv->hasOneUse() &&
1232 (LHSConv->hasOneUse() || RHSConv->hasOneUse())
[all...]
H A DInstCombineVectorOps.cpp46 if (I->getOpcode() == Instruction::Load && I->hasOneUse())
49 if (BO->hasOneUse() &&
54 if (CI->hasOneUse() &&
131 if (!PHIUser->hasOneUse() || !(PHIUser->user_back() == PN) ||
200 if (EI.getOperand(0)->hasOneUse() && VectorWidth != 1) {
237 if (I->hasOneUse() &&
283 if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) {
290 if (SI->hasOneUse()) {
510 while (V->hasOneUse() && Depth < 10) {
561 if (!IE.hasOneUse() || !is
[all...]
H A DInstCombineCasts.cpp103 if (!AI.hasOneUse() && CastElTyAlign == AllocElTyAlign) return nullptr;
113 if (!AI.hasOneUse() && CastElTyStoreSize < AllocElTyStoreSize) return nullptr;
151 if (!AI.hasOneUse()) {
356 if (!I->hasOneUse()) return false;
477 if (Src->hasOneUse() &&
500 if (Src->hasOneUse() && isa<IntegerType>(Src->getType()) &&
669 if (!I->hasOneUse()) return false;
763 if (CI.hasOneUse() && isa<TruncInst>(CI.user_back()))
855 if (LHS && RHS && LHS->hasOneUse() && RHS->hasOneUse()
[all...]
H A DInstructionCombining.cpp316 Op0->hasOneUse() && Op1->hasOneUse()) {
467 if (!V && LHS->hasOneUse() && RHS->hasOneUse())
487 if (!V && LHS->hasOneUse() && RHS->hasOneUse())
689 if (!SI->hasOneUse()) return nullptr;
733 if (!PN->hasOneUse()) {
933 !Src.hasOneUse())
1027 if (!Op->hasOneUse())
[all...]
H A DInstCombineShifts.cpp46 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) {
106 if (!I->hasOneUse()) return false;
406 if (Op0->hasOneUse()) {
419 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() &&
438 if (isLeftShift && Op0BOOp1->hasOneUse() &&
455 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() &&
473 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() &&
H A DInstCombineMulDivRem.cpp32 if (!V->hasOneUse()) return nullptr;
174 if (Op0->hasOneUse()) {
231 if (BO && BO->hasOneUse() &&
305 if (!Op->hasOneUse())
316 if (!OpLog2Of->hasOneUse())
405 if (FMulOrDiv->hasOneUse()) {
560 if (Opnd0->hasOneUse()) {
579 if (Opnd0->hasOneUse() &&
669 if (SI->use_empty() && SelectCond->hasOneUse())
1153 if (Op0->hasOneUse()
[all...]
H A DInstCombineSelect.cpp240 if (TVI->hasOneUse() && TVI->getNumOperands() == 2 &&
275 if (FVI->hasOneUse() && FVI->getNumOperands() == 2 &&
481 if (ICI->hasOneUse())
959 if (TI->hasOneUse() && FI->hasOneUse()) {
H A DInstCombineSimplifyDemanded.cpp154 if (Depth != 0 && !I->hasOneUse()) {
228 if (Depth == 0 && !V->hasOneUse())
354 if (LHSInst->getOpcode() == Instruction::And && LHSInst->hasOneUse() &&
885 if (!Shr->hasOneUse())
978 if (!V->hasOneUse()) {
H A DInstCombineLoadStoreAlloca.cpp426 if (Op->hasOneUse()) {
622 if (Ptr->hasOneUse()) {
627 if (GEP->getOperand(0)->hasOneUse())
/external/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp237 if (V->hasOneUse() && isa<Instruction>(V) &&
566 if (!Op->hasOneUse()) {
585 assert(!Op->hasOneUse() && "Only one use, but we got here twice!");
603 if (!Op->hasOneUse())
618 assert(Op->hasOneUse() && "Has uses outside the expression tree!");
915 if (Sub->hasOneUse() &&
1156 if (!Opnd1->getValue()->hasOneUse())
1192 if (Opnd1->getValue()->hasOneUse())
1194 if (Opnd2->getValue()->hasOneUse())
1799 while (Op->hasOneUse()
[all...]
H A DLoopRerollPass.cpp411 if (C->hasOneUse()) {
421 } while (C->hasOneUse());
500 if (Op->hasOneUse() && L->contains(Op) && !Exclude.count(Op) &&
/external/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp456 if (!Op.hasOneUse()) return 0;
518 assert(Op.hasOneUse() && "Unknown reuse!");
620 if (isSetCCEquivalent(N, N0, N1, N2) && N.getNode()->hasOneUse())
684 if (N0.hasOneUse()) {
705 if (N1.hasOneUse()) {
779 if (TLO.Old.getNode()->getOperand(i).getNode()->hasOneUse())
1400 if (Op.hasOneUse() &&
1467 if (N01C && N00.getOpcode() == ISD::ADD && N00.getNode()->hasOneUse() &&
1598 if (N0.getOpcode() == ISD::SHL && N0.getNode()->hasOneUse()) {
1602 if (N1.getOpcode() == ISD::SHL && N1.getNode()->hasOneUse()) {
[all...]
H A DTargetLowering.cpp336 if (!Op.getNode()->hasOneUse())
388 if (!Op.getNode()->hasOneUse()) {
661 if (InOp.hasOneUse() &&
663 InnerOp.hasOneUse() &&
968 if (Op.getOperand(0).getNode()->hasOneUse()) {
1263 if (N0.hasOneUse() && N0.getOpcode() == ISD::TRUNCATE)
1266 if (CTPOP.hasOneUse() && CTPOP.getOpcode() == ISD::CTPOP &&
1286 if (DCI.isBeforeLegalize() && N0->hasOneUse() &&
1328 N0.getNode()->hasOneUse() &&
1330 N0.getOperand(0).getNode()->hasOneUse()
[all...]
H A DSelectionDAGDumper.cpp535 if (N->getOperand(i).getNode()->hasOneUse())
552 if (!N->hasOneUse() && N != getRoot().getNode())
/external/llvm/lib/Target/AArch64/
H A DAArch64AddressTypePromotion.cpp183 (Inst->getType() == ConsideredSExtType || Inst->hasOneUse()))
188 if (!Inst->hasOneUse())
/external/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp310 if (!N.hasOneUse())
414 if (Callee.getNode() == Chain.getNode() || !Callee.hasOneUse())
425 if (!Chain.hasOneUse())
441 Callee.getValue(1).hasOneUse())
787 !Shift.hasOneUse())
835 if (!N.hasOneUse() || !Shift.hasOneUse())
895 if (Shift.getOpcode() != ISD::SRL || !Shift.hasOneUse() ||
1111 if (MulVal.getNode()->getOpcode() == ISD::ADD && MulVal.hasOneUse() &&
1158 if (!RHS.getNode()->hasOneUse() ||
[all...]
/external/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp359 N1.hasOneUse() &&
408 if (Node->hasOneUse())
/external/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp120 if (load->hasOneUse() == false)
/external/llvm/lib/Transforms/Utils/
H A DLCSSA.cpp211 (I->hasOneUse() && I->user_back()->getParent() == BB &&
H A DFlattenCFG.cpp168 if (!PC || !PC->hasOneUse())
/external/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp974 if (CI && CI->hasOneUse() && CI->getParent() == PN->getIncomingBlock(I) &&
1802 if (!SExtOpnd->hasOneUse() &&
1843 if (!SExtOpnd->hasOneUse()) {
2218 if (I->hasOneUse() ||
2858 if (!LI->hasOneUse() &&
2889 if (Src->hasOneUse())
2977 return Cmp->hasOneUse() &&
2978 ((isa<LoadInst>(CmpOp0) && CmpOp0->hasOneUse()) ||
2979 (isa<LoadInst>(CmpOp1) && CmpOp1->hasOneUse()));

Completed in 345 milliseconds

123