Home
last modified time | relevance | path

Searched refs:getCondition (Results 1 – 25 of 97) sorted by relevance

1234

/external/llvm/lib/Analysis/
DSparsePropagation.cpp135 BCValue = getOrInitValueState(BI->getCondition()); in getFeasibleSuccessors()
137 BCValue = getLatticeState(BI->getCondition()); in getFeasibleSuccessors()
150 Constant *C = LatticeFunc->GetConstant(BCValue, BI->getCondition(), *this); in getFeasibleSuccessors()
177 SCValue = getOrInitValueState(SI.getCondition()); in getFeasibleSuccessors()
179 SCValue = getLatticeState(SI.getCondition()); in getFeasibleSuccessors()
192 Constant *C = LatticeFunc->GetConstant(SCValue, SI.getCondition(), *this); in getFeasibleSuccessors()
DBranchProbabilityInfo.cpp282 Value *Cond = BI->getCondition(); in calcPointerHeuristics()
372 Value *Cond = BI->getCondition(); in calcZeroHeuristics()
454 Value *Cond = BI->getCondition(); in calcFloatingPointHeuristics()
DLazyValueInfo.cpp893 if (BI->getCondition() == Val) { in getEdgeValueLocal()
901 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) in getEdgeValueLocal()
910 if (SI->getCondition() != Val) in getEdgeValueLocal()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp31 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); in MatchSelectPattern()
159 Type *CondTy = SI.getCondition()->getType(); in FoldSelectOpOp()
168 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), in FoldSelectOpOp()
208 Value *NewSI = Builder->CreateSelect(SI.getCondition(), OtherOpT, in FoldSelectOpOp()
256 Value *NewSel = Builder->CreateSelect(SI.getCondition(), OOp, C); in FoldSelectIntoOp()
291 Value *NewSel = Builder->CreateSelect(SI.getCondition(), C, OOp); in FoldSelectIntoOp()
394 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition()); in foldSelectICmpAndOr()
751 const PHINode *CondPHI = cast<PHINode>(SI.getCondition()); in CanSelectOperandBeMappingIntoPredBlock()
829 SI->getCondition(), SI->getFalseValue(), SI->getTrueValue()); in FoldSPFofSPF()
842 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition()); in foldSelectICmpAnd()
[all …]
DInstructionCombining.cpp720 return SelectInst::Create(SI->getCondition(), in FoldOpIntoSelect()
2034 !isa<UndefValue>(BI.getCondition())) { in visitBranchInst()
2035 BI.setCondition(UndefValue::get(BI.getCondition()->getType())); in visitBranchInst()
2043 BI.getCondition()->hasOneUse()) in visitBranchInst()
2046 FCmpInst *Cond = cast<FCmpInst>(BI.getCondition()); in visitBranchInst()
2059 BI.getCondition()->hasOneUse()) in visitBranchInst()
2063 ICmpInst *Cond = cast<ICmpInst>(BI.getCondition()); in visitBranchInst()
2075 Value *Cond = SI.getCondition(); in visitSwitchInst()
2102 Value *NewCond = Builder->CreateTrunc(SI.getCondition(), Ty, "trunc"); in visitSwitchInst()
2851 if (BI->isConditional() && isa<ConstantInt>(BI->getCondition())) { in AddReachableCodeToWorklist()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp45 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
89 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI.getCondition()); in handleBranchExpect()
91 CI = dyn_cast<CallInst>(BI.getCondition()); in handleBranchExpect()
DSCCP.cpp527 LatticeVal BCValue = getValueState(BI->getCondition()); in getFeasibleSuccessors()
553 LatticeVal SCValue = getValueState(SI->getCondition()); in getFeasibleSuccessors()
596 LatticeVal BCValue = getValueState(BI->getCondition()); in isEdgeFeasible()
616 LatticeVal SCValue = getValueState(SI->getCondition()); in isEdgeFeasible()
818 LatticeVal CondValue = getValueState(I.getCondition()); in visitSelectInst()
1458 if (!getValueState(BI->getCondition()).isUndefined()) in ResolvedUndefsIn()
1463 if (isa<UndefValue>(BI->getCondition())) { in ResolvedUndefsIn()
1472 markForcedConstant(BI->getCondition(), in ResolvedUndefsIn()
1480 if (!getValueState(SI->getCondition()).isUndefined()) in ResolvedUndefsIn()
1485 if (isa<UndefValue>(SI->getCondition())) { in ResolvedUndefsIn()
[all …]
DCorrelatedValuePropagation.cpp212 Value *Cond = SI->getCondition(); in processSwitch()
267 Cond = SI->getCondition(); in processSwitch()
DLoopUnswitch.cpp454 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), in processCurrentLoop()
463 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in processCurrentLoop()
498 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in processCurrentLoop()
582 if (!BI->isConditional() || BI->getCondition() != Cond) in IsTrivialUnswitchCondition()
598 if (SI->getCondition() != Cond) return false; in IsTrivialUnswitchCondition()
DLoopRotation.cpp496 if (!isa<ConstantInt>(PHBI->getCondition()) || in rotateLoop()
497 PHBI->getSuccessor(cast<ConstantInt>(PHBI->getCondition())->isZero()) in rotateLoop()
DLoopIdiomRecognize.cpp318 ICmpInst *Cond = dyn_cast<ICmpInst>(Br->getCondition()); in matchCondition()
502 ICmpInst *PreCond = cast<ICmpInst>(PreCondBr->getCondition()); in transform()
539 ICmpInst *LbCond = cast<ICmpInst>(LbBr->getCondition()); in transform()
DJumpThreading.cpp585 ComputeValueKnownInPredecessors(SI->getCondition(), BB, Conds, in ComputeValueKnownInPredecessors()
695 Condition = BI->getCondition(); in ProcessBlock()
697 Condition = SI->getCondition(); in ProcessBlock()
1734 BranchInst::Create(NewBB, BB, SI->getCondition(), Pred); in TryToUnfoldSelect()
/external/llvm/lib/Transforms/Utils/
DFlattenCFG.cpp167 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
244 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); in FlattenParallelAndOr()
273 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
282 Value *CC = PBI->getCondition(); in FlattenParallelAndOr()
440 Value *CC = PBI->getCondition(); in MergeIfRegion()
DSimplifyCFG.cpp184 CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition()); in isProfitableToFoldUnconditional()
510 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorInstAndDCECond()
513 Cond = dyn_cast<Instruction>(BI->getCondition()); in EraseTerminatorInstAndDCECond()
531 CV = SI->getCondition(); in isValueEqualityComparison()
533 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison()
534 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison()
565 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases()
804 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights()
1182 (Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
1471 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
[all …]
DCloneFunction.cpp410 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition()); in CloneBlock()
413 Value *V = VMap[BI->getCondition()]; in CloneBlock()
427 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition()); in CloneBlock()
429 Value *V = VMap[SI->getCondition()]; in CloneBlock()
DLocal.cpp73 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) { in ConstantFoldTerminator()
104 Value *Cond = BI->getCondition(); in ConstantFoldTerminator()
116 ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition()); in ConstantFoldTerminator()
199 Value *Cond = SI->getCondition(); in ConstantFoldTerminator()
210 Value *Cond = Builder.CreateICmpEQ(SI->getCondition(), in ConstantFoldTerminator()
DLoopSimplify.cpp530 if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) { in simplifyOneLoop()
651 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); in simplifyOneLoop()
/external/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp39 if (A->getCondition() == SB->getCondition()) in relatedSelect()
/external/deqp/modules/glshared/
DglsAttributeLocationTests.cpp136 if (iter->getCondition() != Cond::COND_NEVER && iter->getCondition() != Cond::COND_ALWAYS) in generateConditionUniformDefinitions()
137 conditions.insert(iter->getCondition().getName()); in generateConditionUniformDefinitions()
179 if (iter->getCondition() == Cond::COND_NEVER) in generateOutputCode()
195 else if (iter->getCondition() == Cond::COND_ALWAYS) in generateOutputCode()
208 …"\tif (u_" << iter->getCondition().getName() << (iter->getCondition().getNegate() ? " != " : " == … in generateOutputCode()
582 const bool isActive = attrib.getCondition() != Cond::COND_NEVER; in checkActiveAttribQuery()
616 …<< (attrib.getCondition() != Cond::COND_NEVER && expectedLocation != Attribute::LOC_UNDEF ? ", exp… in checkAttribLocationQuery()
619 if (attrib.getCondition() == Cond::COND_NEVER && location != -1) in checkAttribLocationQuery()
622 …if (attrib.getCondition() != Cond::COND_NEVER && expectedLocation != Attribute::LOC_UNDEF && expec… in checkAttribLocationQuery()
625 …isOk &= (attrib.getCondition() == Cond::COND_NEVER || expectedLocation == Attribute::LOC_UNDEF || … in checkAttribLocationQuery()
/external/llvm/lib/Target/R600/
DSIAnnotateControlFlow.cpp197 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf()
279 Value *Cond = Term->getCondition(); in handleLoop()
339 PHINode *Phi = dyn_cast<PHINode>(Term->getCondition()); in runOnFunction()
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DWaitingThread.java94 public final Condition getCondition() { in getCondition() method in WaitingThread
/external/llvm/tools/llvm-diff/
DDifferenceEngine.cpp297 if (!equivalentAsOperands(LI->getCondition(), RI->getCondition())) { in diff()
309 if (!equivalentAsOperands(LI->getCondition(), RI->getCondition())) { in diff()
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp815 return BI.isUnconditional() || isa<ConstantInt>(BI.getCondition()) || in visitBranchInst()
817 SimplifiedValues.lookup(BI.getCondition())); in visitBranchInst()
823 if (isa<ConstantInt>(SI.getCondition())) in visitSwitchInst()
825 if (Value *V = SimplifiedValues.lookup(SI.getCondition())) in visitSwitchInst()
1197 Value *Cond = BI->getCondition(); in analyzeCall()
1205 Value *Cond = SI->getCondition(); in analyzeCall()
/external/clang/lib/AST/
DStmtProfile.cpp272 if (C->getCondition()) in VisitOMPIfClause()
273 Profiler->VisitStmt(C->getCondition()); in VisitOMPIfClause()
277 if (C->getCondition()) in VisitOMPFinalClause()
278 Profiler->VisitStmt(C->getCondition()); in VisitOMPFinalClause()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp2112 assert(isa<CmpInst>(BI->getCondition()) && "Expected cmp instruction"); in emitCompareAndBranch()
2113 const CmpInst *CI = cast<CmpInst>(BI->getCondition()); in emitCompareAndBranch()
2250 if (const CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition())) { in selectBranch()
2319 } else if (TruncInst *TI = dyn_cast<TruncInst>(BI->getCondition())) { in selectBranch()
2357 } else if (const auto *CI = dyn_cast<ConstantInt>(BI->getCondition())) { in selectBranch()
2370 } else if (foldXALUIntrinsic(CC, I, BI->getCondition())) { in selectBranch()
2373 unsigned CondReg = getRegForValue(BI->getCondition()); in selectBranch()
2393 unsigned CondReg = getRegForValue(BI->getCondition()); in selectBranch()
2396 bool CondRegIsKill = hasTrivialKill(BI->getCondition()); in selectBranch()
2536 Src1Val = SI->getCondition(); in optimizeSelect()
[all …]

1234