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

123

/freebsd-10.0-release/contrib/llvm/lib/Analysis/
H A DCodeMetrics.cpp39 if (!CS.isNoInline() && F->hasInternalLinkage() && F->hasOneUse())
/freebsd-10.0-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp101 if (!AI.hasOneUse() && CastElTyAlign == AllocElTyAlign) return 0;
111 if (!AI.hasOneUse() && CastElTyStoreSize < AllocElTyStoreSize) return 0;
148 if (!AI.hasOneUse()) {
353 if (!I->hasOneUse()) return false;
474 if (Src->hasOneUse() &&
497 if (Src->hasOneUse() && isa<IntegerType>(Src->getType()) &&
666 if (!I->hasOneUse()) return false;
750 if (CI.hasOneUse() && isa<TruncInst>(CI.use_back()))
842 if (LHS && RHS && LHS->hasOneUse() && RHS->hasOneUse()
[all...]
H A DInstCombineCompares.cpp657 (GEPLHS->hasAllConstantIndices() || GEPLHS->hasOneUse()) &&
658 (GEPRHS->hasAllConstantIndices() || GEPRHS->hasOneUse()) &&
730 (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) &&
731 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) {
1036 if (Shr->hasOneUse() && Shr->isExact())
1039 if (Shr->hasOneUse()) {
1061 if (ICI.isEquality() && LHSI->hasOneUse()) {
1110 if (LHSI->hasOneUse()) {
1137 if (LHSI->hasOneUse() && isa<ConstantInt>(LHSI->getOperand(1)) &&
1138 LHSI->getOperand(0)->hasOneUse()) {
[all...]
H A DInstCombineAndOrXor.cpp46 return CI->hasOneUse();
142 if (Op->hasOneUse()) {
150 if (Op->hasOneUse()){
172 if (Op->hasOneUse()) {
250 if (Op->hasOneUse()) {
750 LHS->hasOneUse() && RHS->hasOneUse()) {
1040 if (!Op0I->hasOneUse()) break;
1078 if (Op0I->hasOneUse() && !match(Op0LHS, m_Zero())) {
1136 if (Op0->hasOneUse()
[all...]
H A DInstCombinePHI.cpp46 if (!I || I->getOpcode() != Opc || !I->hasOneUse() ||
149 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
320 if (!LI || !LI->hasOneUse())
437 if (I == 0 || !I->hasOneUse() || !I->isSameOperationAs(FirstInst))
511 if (!PN->hasOneUse()) return false;
674 !User->hasOneUse() || !isa<TruncInst>(User->use_back()) ||
804 // FIXME: The hasOneUse check will fail for PHIs that use the value more
806 PN.getIncomingValue(0)->hasOneUse())
813 if (PN.hasOneUse()) {
828 if (PHIUser->hasOneUse()
[all...]
H A DInstCombineMulDivRem.cpp30 if (!V->hasOneUse()) return 0;
131 if (Op0->hasOneUse() &&
146 if (Op0->hasOneUse()) {
190 if (BO && BO->hasOneUse() &&
264 if (!Op->hasOneUse())
275 if (!OpLog2Of->hasOneUse())
484 if (Opnd0->hasOneUse()) {
507 if (Opnd0->hasOneUse() &&
596 if (SI->use_empty() && SelectCond->hasOneUse())
958 if (Op0->hasOneUse()
[all...]
H A DInstructionCombining.cpp314 Op0->hasOneUse() && Op1->hasOneUse()) {
425 if (!V && Op0->hasOneUse() && Op1->hasOneUse())
447 if (!V && Op0->hasOneUse() && Op1->hasOneUse())
587 if (!SI->hasOneUse()) return 0;
631 if (!PN->hasOneUse()) {
824 !Src.hasOneUse())
918 if (!Op->hasOneUse())
[all...]
H A DInstCombineVectorOps.cpp42 if (I->getOpcode() == Instruction::Load && I->hasOneUse())
45 if (BO->hasOneUse() &&
50 if (CI->hasOneUse() &&
127 if (!PHIUser->hasOneUse() || !(PHIUser->use_back() == PN) ||
198 if (EI.getOperand(0)->hasOneUse() && VectorWidth != 1) {
235 if (I->hasOneUse() &&
281 if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) {
476 if (!IE.hasOneUse() || !isa<InsertElementInst>(IE.use_back())) {
H A DInstCombineAddSub.cpp544 InstQuota = ((!isa<Constant>(V0) && V0->hasOneUse()) &&
545 (!isa<Constant>(V1) && V1->hasOneUse())) ? 2 : 1;
864 if (!V->hasOneUse() || !V->getType()->isIntegerTy())
968 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) {
1079 if (LHS->hasOneUse() &&
1113 if (SI && SI->hasOneUse()) {
1137 if (LHSConv->hasOneUse() &&
1153 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) &&
1213 if (LHSConv->hasOneUse()
[all...]
H A DInstCombineShifts.cpp44 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) {
104 if (!I->hasOneUse()) return false;
403 if (Op0->hasOneUse()) {
416 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() &&
431 if (isLeftShift && Op0BOOp1->hasOneUse() &&
448 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() &&
462 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() &&
H A DInstCombineSelect.cpp216 if (TVI->hasOneUse() && TVI->getNumOperands() == 2 &&
251 if (FVI->hasOneUse() && FVI->getNumOperands() == 2 &&
430 if (ICI->hasOneUse())
863 if (TI->hasOneUse() && FI->hasOneUse()) {
H A DInstCombineSimplifyDemanded.cpp153 if (Depth != 0 && !I->hasOneUse()) {
227 if (Depth == 0 && !V->hasOneUse())
353 if (LHSInst->getOpcode() == Instruction::And && LHSInst->hasOneUse() &&
885 if (!Shr->hasOneUse())
978 if (!V->hasOneUse()) {
/freebsd-10.0-release/contrib/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp247 if (V->hasOneUse() && isa<Instruction>(V) &&
573 if (!Op->hasOneUse()) {
592 assert(!Op->hasOneUse() && "Only one use, but we got here twice!");
610 if (!Op->hasOneUse())
625 assert(Op->hasOneUse() && "Has uses outside the expression tree!");
923 if (Sub->hasOneUse() &&
1164 if (!Opnd1->getValue()->hasOneUse())
1200 if (Opnd1->getValue()->hasOneUse())
1202 if (Opnd2->getValue()->hasOneUse())
1805 while (Op->hasOneUse()
[all...]
H A DCodeGenPrepare.cpp762 if (CI && CI->hasOneUse() && CI->getParent() == PN->getIncomingBlock(I) &&
1206 if (I->hasOneUse() ||
1704 if (!LI->hasOneUse() &&
1735 if (Src->hasOneUse())
1826 return Cmp->hasOneUse() &&
1827 ((isa<LoadInst>(CmpOp0) && CmpOp0->hasOneUse()) ||
1828 (isa<LoadInst>(CmpOp1) && CmpOp1->hasOneUse()));
/freebsd-10.0-release/contrib/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp211 if (B && B->hasOneUse()) {
225 if (A && A->hasOneUse()) {
/freebsd-10.0-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp405 if (!Op.hasOneUse()) return 0;
467 assert(Op.hasOneUse() && "Unknown reuse!");
571 if (isSetCCEquivalent(N, N0, N1, N2) && N.getNode()->hasOneUse())
588 if (N0.hasOneUse()) {
606 if (N1.hasOneUse()) {
677 if (TLO.Old.getNode()->getOperand(i).getNode()->hasOneUse())
1292 if (Op.hasOneUse() &&
1360 if (N01C && N00.getOpcode() == ISD::ADD && N00.getNode()->hasOneUse() &&
1489 if (N0.getOpcode() == ISD::SHL && N0.getNode()->hasOneUse()) {
1493 if (N1.getOpcode() == ISD::SHL && N1.getNode()->hasOneUse()) {
[all...]
H A DTargetLowering.cpp313 if (!Op.getNode()->hasOneUse())
365 if (!Op.getNode()->hasOneUse()) {
884 if (Op.getOperand(0).getNode()->hasOneUse()) {
1116 if (N0.hasOneUse() && N0.getOpcode() == ISD::TRUNCATE)
1119 if (CTPOP.hasOneUse() && CTPOP.getOpcode() == ISD::CTPOP &&
1139 if (DCI.isBeforeLegalize() && N0->hasOneUse() &&
1179 N0.getNode()->hasOneUse() &&
1181 N0.getOperand(0).getNode()->hasOneUse() &&
1497 N0.getOpcode() == ISD::AND && N0.hasOneUse()) {
1667 if (N0.getOpcode() == ISD::ADD && N0.getNode()->hasOneUse()) {
[all...]
H A DSelectionDAGDumper.cpp517 if (N->getOperand(i).getNode()->hasOneUse())
534 if (!N->hasOneUse() && N != getRoot().getNode())
/freebsd-10.0-release/contrib/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp300 if (!N.hasOneUse())
405 if (Callee.getNode() == Chain.getNode() || !Callee.hasOneUse())
416 if (!Chain.hasOneUse())
432 Callee.getValue(1).hasOneUse())
776 !Shift.hasOneUse())
824 if (!N.hasOneUse() || !Shift.hasOneUse())
884 if (Shift.getOpcode() != ISD::SRL || !Shift.hasOneUse() ||
1100 if (MulVal.getNode()->getOpcode() == ISD::ADD && MulVal.hasOneUse() &&
1147 if (!RHS.getNode()->hasOneUse() ||
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp357 N1.hasOneUse() &&
408 if (Node->hasOneUse())
/freebsd-10.0-release/contrib/llvm/include/llvm/IR/
H A DValue.h154 /// hasOneUse - Return true if there is exactly one user of this value. This
158 bool hasOneUse() const { function in class:llvm::Value
176 /// is a linear time operation. Use hasOneUse, hasNUses, or hasNUsesOrMore
/freebsd-10.0-release/contrib/llvm/lib/Target/MBlaze/
H A DMBlazeISelDAGToDAG.cpp214 if (Node->hasOneUse())
/freebsd-10.0-release/contrib/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp186 if (!MultHi.hasOneUse() || !MultLo.hasOneUse())
262 if (!MultHi.hasOneUse() || !MultLo.hasOneUse())
/freebsd-10.0-release/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp120 if (load->hasOneUse() == false)
/freebsd-10.0-release/contrib/llvm/lib/Transforms/Utils/
H A DLCSSA.cpp156 (I->hasOneUse() && I->use_back()->getParent() == BB &&

Completed in 326 milliseconds

123