Home
last modified time | relevance | path

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

12345678910>>...13

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp130 Type *CondTy = SI.getCondition()->getType(); in FoldSelectOpOp()
157 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), in FoldSelectOpOp()
202 Value *NewSI = Builder->CreateSelect(SI.getCondition(), OtherOpT, in FoldSelectOpOp()
250 Value *NewSel = Builder->CreateSelect(SI.getCondition(), OOp, C); in FoldSelectIntoOp()
280 Value *NewSel = Builder->CreateSelect(SI.getCondition(), C, OOp); in FoldSelectIntoOp()
312 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition()); in foldSelectICmpAndOr()
632 const PHINode *CondPHI = cast<PHINode>(SI.getCondition()); in CanSelectOperandBeMappingIntoPredBlock()
713 SI->getCondition(), SI->getFalseValue(), SI->getTrueValue()); in FoldSPFofSPF()
772 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition()); in foldSelectICmpAnd()
844 Value *CondVal = SI.getCondition(); in foldAddSubSelect()
[all …]
/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()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DSparsePropagation.cpp134 BCValue = getOrInitValueState(BI->getCondition()); in getFeasibleSuccessors()
136 BCValue = getLatticeState(BI->getCondition()); in getFeasibleSuccessors()
149 Constant *C = LatticeFunc->GetConstant(BCValue, BI->getCondition(), *this); in getFeasibleSuccessors()
176 SCValue = getOrInitValueState(SI.getCondition()); in getFeasibleSuccessors()
178 SCValue = getLatticeState(SI.getCondition()); in getFeasibleSuccessors()
191 Constant *C = LatticeFunc->GetConstant(SCValue, SI.getCondition(), *this); in getFeasibleSuccessors()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp67 Value *Cond = Sel.getCondition(); in foldSelectBinOpIdentity()
275 Type *CondTy = SI.getCondition()->getType(); in foldSelectOpOp()
302 Builder.CreateSelect(SI.getCondition(), TI->getOperand(0), in foldSelectOpOp()
347 Value *NewSI = Builder.CreateSelect(SI.getCondition(), OtherOpT, OtherOpF, in foldSelectOpOp()
397 Value *NewSel = Builder.CreateSelect(SI.getCondition(), OOp, C); in foldSelectIntoOp()
428 Value *NewSel = Builder.CreateSelect(SI.getCondition(), C, OOp); in foldSelectIntoOp()
1027 const PHINode *CondPHI = cast<PHINode>(SI.getCondition()); in canSelectOperandBeMappingIntoPredBlock()
1104 Builder.CreateSelect(SI->getCondition(), SI->getFalseValue(), in foldSPFofSPF()
1163 Value *CondVal = SI.getCondition(); in foldAddSubSelect()
1250 Value *Cond = Sel.getCondition(); in foldSelectExtConst()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyCFG.cpp183 return Pred1Br->getCondition(); in GetIfCondition()
205 return BI->getCondition(); in GetIfCondition()
437 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorInstAndDCECond()
440 Cond = dyn_cast<Instruction>(BI->getCondition()); in EraseTerminatorInstAndDCECond()
458 CV = SI->getCondition(); in isValueEqualityComparison()
460 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison()
461 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) in isValueEqualityComparison()
488 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases()
932 (Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
974 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
[all …]
DLowerExpectIntrinsic.cpp47 CallInst *CI = dyn_cast<CallInst>(SI->getCondition()); in HandleSwitchExpect()
90 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI->getCondition()); in HandleIfExpect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSimpleLoopUnswitch.cpp341 if (L.isLoopInvariant(BI.getCondition())) { in unswitchTrivialBranch()
342 Invariants.push_back(BI.getCondition()); in unswitchTrivialBranch()
345 if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition())) in unswitchTrivialBranch()
375 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::Or) in unswitchTrivialBranch()
378 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::And) in unswitchTrivialBranch()
443 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchTrivialBranch()
447 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchTrivialBranch()
519 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
789 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
819 if (!BI->isConditional() || isa<Constant>(BI->getCondition())) in unswitchAllTrivialConditions()
[all …]
DLoopUnswitch.cpp549 Value *Cond = BInst->getCondition(); in isUnreachableDueToPreviousUnswitching()
717 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), in processCurrentLoop()
726 Value *SC = SI->getCondition(); in processCurrentLoop()
790 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in processCurrentLoop()
1066 } else if (BI->getCondition() == ConstantInt::getTrue(Context)) { in TryTrivialLoopUnswitch()
1068 } else if (BI->getCondition() == ConstantInt::getFalse(Context)) { in TryTrivialLoopUnswitch()
1077 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition()); in TryTrivialLoopUnswitch()
1100 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), in TryTrivialLoopUnswitch()
1105 if (!LoopCond || LoopCond != BI->getCondition()) in TryTrivialLoopUnswitch()
1134 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in TryTrivialLoopUnswitch()
[all …]
DLowerExpectIntrinsic.cpp58 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
246 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect()
250 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp255 CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition()); in isProfitableToFoldUnconditional()
670 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorInstAndDCECond()
673 Cond = dyn_cast<Instruction>(BI->getCondition()); in EraseTerminatorInstAndDCECond()
691 CV = SI->getCondition(); in isValueEqualityComparison()
693 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison()
694 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison()
723 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases()
985 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights()
1396 Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
1927 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
[all …]
DFlattenCFG.cpp178 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
256 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); in FlattenParallelAndOr()
285 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
294 Value *CC = PBI->getCondition(); in FlattenParallelAndOr()
449 Value *CC = PBI->getCondition(); in MergeIfRegion()
DPredicateInfo.cpp394 if (match(BI->getCondition(), m_And(m_Cmp(Pred, m_Value(), m_Value()), in processBranch()
396 match(BI->getCondition(), m_Or(m_Cmp(Pred, m_Value(), m_Value()), in processBranch()
398 auto *BinOp = cast<BinaryOperator>(BI->getCondition()); in processBranch()
405 ConditionsToProcess.push_back(BI->getCondition()); in processBranch()
406 } else if (isa<CmpInst>(BI->getCondition())) { in processBranch()
407 ConditionsToProcess.push_back(BI->getCondition()); in processBranch()
433 Value *Op = SI->getCondition(); in processSwitch()
/external/llvm/lib/Transforms/Utils/
DFlattenCFG.cpp165 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
243 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); in FlattenParallelAndOr()
272 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
281 Value *CC = PBI->getCondition(); in FlattenParallelAndOr()
438 Value *CC = PBI->getCondition(); in MergeIfRegion()
DSimplifyCFG.cpp216 CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition()); in isProfitableToFoldUnconditional()
629 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorInstAndDCECond()
632 Cond = dyn_cast<Instruction>(BI->getCondition()); in EraseTerminatorInstAndDCECond()
652 CV = SI->getCondition(); in isValueEqualityComparison()
654 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison()
655 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison()
685 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases()
922 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights()
1304 Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
1598 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/
DChange.java14 switch (csmConditional.getCondition()) { in evaluate()
24 …pportedOperationException("" + csmConditional.getProperty() + " " + csmConditional.getCondition()); in evaluate()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); in MatchSelectPattern()
137 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), in FoldSelectOpOp()
177 Value *NewSI = Builder->CreateSelect(SI.getCondition(), OtherOpT, in FoldSelectOpOp()
226 Value *NewSel = Builder->CreateSelect(SI.getCondition(), OOp, C); in FoldSelectIntoOp()
261 Value *NewSel = Builder->CreateSelect(SI.getCondition(), C, OOp); in FoldSelectIntoOp()
535 const PHINode *CondPHI = cast<PHINode>(SI.getCondition()); in CanSelectOperandBeMappingIntoPredBlock()
586 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition()); in foldSelectICmpAnd()
650 Value *CondVal = SI.getCondition(); in visitSelectInst()
860 if (isa<PHINode>(SI.getCondition())) in visitSelectInst()
868 if (TrueSI->getCondition() == CondVal) { in visitSelectInst()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp57 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
101 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI.getCondition()); in handleBranchExpect()
103 CI = dyn_cast<CallInst>(BI.getCondition()); in handleBranchExpect()
DSCCP.cpp550 LatticeVal BCValue = getValueState(BI->getCondition()); in getFeasibleSuccessors()
576 LatticeVal SCValue = getValueState(SI->getCondition()); in getFeasibleSuccessors()
619 LatticeVal BCValue = getValueState(BI->getCondition()); in isEdgeFeasible()
639 LatticeVal SCValue = getValueState(SI->getCondition()); in isEdgeFeasible()
847 LatticeVal CondValue = getValueState(I.getCondition()); in visitSelectInst()
1472 if (!getValueState(BI->getCondition()).isUnknown()) in ResolvedUndefsIn()
1477 if (isa<UndefValue>(BI->getCondition())) { in ResolvedUndefsIn()
1486 markForcedConstant(BI->getCondition(), in ResolvedUndefsIn()
1494 if (!getValueState(SI->getCondition()).isUnknown()) in ResolvedUndefsIn()
1499 if (isa<UndefValue>(SI->getCondition())) { in ResolvedUndefsIn()
[all …]
DLoopUnswitch.cpp601 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), in processCurrentLoop()
610 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in processCurrentLoop()
645 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in processCurrentLoop()
905 } else if (BI->getCondition() == ConstantInt::getTrue(Context)) { in TryTrivialLoopUnswitch()
907 } else if (BI->getCondition() == ConstantInt::getFalse(Context)) { in TryTrivialLoopUnswitch()
930 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), in TryTrivialLoopUnswitch()
935 if (!LoopCond || LoopCond != BI->getCondition()) in TryTrivialLoopUnswitch()
961 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in TryTrivialLoopUnswitch()
966 if (!LoopCond || LoopCond != SI->getCondition()) in TryTrivialLoopUnswitch()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DSparsePropagation.h303 getValueState(KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors()
306 KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors()
321 std::move(BCValue), BI->getCondition()->getType())); in getFeasibleSuccessors()
346 SCValue = getValueState(KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors()
349 KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors()
363 std::move(SCValue), SI.getCondition()->getType())); in getFeasibleSuccessors()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp163 return DA->isUniform(T->getCondition()) || in isUniform()
213 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf()
339 Value *Cond = Term->getCondition(); in handleLoop()
412 PHINode *Phi = dyn_cast<PHINode>(Term->getCondition()); in runOnFunction()
/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp170 return DA->isUniform(T->getCondition()) || in isUniform()
219 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf()
337 Value *Cond = Term->getCondition(); in handleLoop()
404 PHINode *Phi = dyn_cast<PHINode>(Term->getCondition()); in runOnFunction()
/external/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp39 if (A->getCondition() == SB->getCondition()) in relatedSelect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp48 if (A->getCondition() == SB->getCondition()) in relatedSelect()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSCCP.cpp563 LatticeVal BCValue = getValueState(BI->getCondition()); in getFeasibleSuccessors()
589 LatticeVal SCValue = getValueState(SI->getCondition()); in getFeasibleSuccessors()
632 LatticeVal BCValue = getValueState(BI->getCondition()); in isEdgeFeasible()
652 LatticeVal SCValue = getValueState(SI->getCondition()); in isEdgeFeasible()
879 LatticeVal CondValue = getValueState(I.getCondition()); in visitSelectInst()
1637 if (!getValueState(BI->getCondition()).isUndefined()) in ResolvedUndefsIn()
1642 if (isa<UndefValue>(BI->getCondition())) { in ResolvedUndefsIn()
1651 markForcedConstant(BI->getCondition(), in ResolvedUndefsIn()
1659 if (!getValueState(SI->getCondition()).isUndefined()) in ResolvedUndefsIn()
1664 if (isa<UndefValue>(SI->getCondition())) { in ResolvedUndefsIn()
[all …]

12345678910>>...13