Home
last modified time | relevance | path

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

123456

/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DFlattenCFG.cpp175 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
253 auto *CI = dyn_cast<CmpInst>(BI->getCondition()); in FlattenParallelAndOr()
282 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
290 Value *CC = PBI->getCondition(); in FlattenParallelAndOr()
414 Instruction *CInst2 = dyn_cast<Instruction>(DomBI2->getCondition()); in MergeIfRegion()
426 Instruction *CInst1 = dyn_cast<Instruction>(DomBI1->getCondition()); in MergeIfRegion()
485 assert(PBI->getCondition() == CInst2); in MergeIfRegion()
H A DGuardUtils.cpp75 CheckBI->setCondition(B.CreateAnd(CheckBI->getCondition(), WC, in makeGuardControlFlowExplicit()
101 Instruction *WCAnd = cast<Instruction>(WidenableBR->getCondition()); in widenWidenableBranch()
120 Instruction *WCAnd = cast<Instruction>(WidenableBR->getCondition()); in setWidenableBranchCond()
H A DSimplifyCFG.cpp780 CV = SI->getCondition(); in isValueEqualityComparison()
2859 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
3151 Value *Cond = BI->getCondition(); in FoldCondBranchOnValueKnownInPredecessorImpl()
4004 ->getCondition(); in mergeConditionalStoreToAddress()
4221 if (PBI->getCondition() == BI->getCondition() && in SimplifyCondBranchToCondBranch()
4328 Value *BICond = BI->getCondition(); in SimplifyCondBranchToCondBranch()
4594 if (SI->getCondition() != V) in tryToSimplifyUncondBranchWithICmpInIt()
5368 Value *Sub = SI->getCondition(); in TurnSwitchRangeIntoICmp()
5438 Value *Cond = SI->getCondition(); in eliminateDeadSwitchCases()
6508 TableIndex = SI->getCondition(); in SwitchToLookupTable()
[all …]
H A DMisExpect.cpp84 Ret = dyn_cast<Instruction>(B->getCondition()); in getInstCondition()
96 Ret = dyn_cast<Instruction>(S->getCondition()); in getInstCondition()
H A DCodeMoverUtils.cpp143 << *BI->getCondition() << "\" is true from " in collectControlConditions()
146 ControlCondition(BI->getCondition(), true)); in collectControlConditions()
149 << *BI->getCondition() << "\" is false from " in collectControlConditions()
152 ControlCondition(BI->getCondition(), false)); in collectControlConditions()
H A DLowerSwitch.cpp357 Value *Val = SI->getCondition(); // The value we are switching on... in ProcessSwitchInst()
371 IntegerType *IT = cast<IntegerType>(SI->getCondition()->getType()); in ProcessSwitchInst()
510 Val = SI->getCondition(); in ProcessSwitchInst()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DGuardWidening.cpp82 static Value *getCondition(Instruction *I) { in getCondition() function
93 return cast<BranchInst>(I)->getCondition(); in getCondition()
267 widenCondCommon(getCondition(ToWiden), NewCondition, ToWiden, Result, in widenGuard()
319 assert(isa<ConstantInt>(getCondition(I)) && "Should be!"); in run()
339 if (isa<ConstantInt>(getCondition(Instr))) in eliminateInstrViaWidening()
376 LLVM_DEBUG(dbgs() << "Score between " << *getCondition(Instr) in eliminateInstrViaWidening()
377 << " and " << *getCondition(Candidate) << " is " in eliminateInstrViaWidening()
397 widenGuard(BestSoFar, getCondition(Instr), InvertCondition); in eliminateInstrViaWidening()
425 if (!isAvailableAt(getCondition(DominatedInstr), DominatingGuard)) in computeWideningScore()
436 if (isWideningCondProfitable(getCondition(DominatedInstr), in computeWideningScore()
[all …]
H A DIndVarSimplify.cpp472 Cond = BI->getCondition(); in rewriteFirstIterationLoopExitValues()
474 Cond = SI->getCondition(); in rewriteFirstIterationLoopExitValues()
723 if (L->isLoopInvariant(BI->getCondition())) in needsLFTR()
1186 Value *OrigCond = BI->getCondition(); in linearFunctionTestReplace()
1295 auto *OldCond = BI->getCondition(); in replaceExitCond()
1307 auto *OldCond = BI->getCondition(); in createFoldedExitCond()
1447 Value *OldCond = BI->getCondition(); in optimizeLoopExitWithUnknownExitCount()
1556 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in canonicalizeExitCondition()
1602 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in canonicalizeExitCondition()
1880 if (isa<Constant>(BI->getCondition())) in predicateLoopExits()
[all …]
H A DSimpleLoopUnswitch.cpp479 Value *Cond = skipTrivialSelect(BI.getCondition()); in unswitchTrivialBranch()
701 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
1029 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
1060 isa<Constant>(skipTrivialSelect(BI->getCondition()))) in unswitchAllTrivialConditions()
1253 ClonedConditionToErase = BI->getCondition(); in buildClonedLoopBlocks()
1255 ClonedConditionToErase = SI->getCondition(); in buildClonedLoopBlocks()
2115 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants()
2197 BI ? skipTrivialSelect(BI->getCondition()) : SI->getCondition(); in unswitchNontrivialInvariants()
2795 if (!isa<Constant>(SI->getCondition()) && in collectUnswitchCandidates()
2806 Value *Cond = skipTrivialSelect(BI->getCondition()); in collectUnswitchCandidates()
[all …]
H A DLowerExpectIntrinsic.cpp80 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
293 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect()
297 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
H A DLoopBoundSplit.cpp215 ICmpInst *ICmp = cast<ICmpInst>(ExitingBI->getCondition()); in canSplitLoopBound()
260 if (L.isLoopInvariant(BI->getCondition())) in findSplitCandidate()
264 ICmpInst *ICmp = cast<ICmpInst>(BI->getCondition()); in findSplitCandidate()
H A DLoopPredication.cpp852 unsigned NumWidened = collectChecks(Checks, BI->getCondition(), in widenWidenableBranchGuardConditions()
862 auto *OldCond = BI->getCondition(); in widenWidenableBranchGuardConditions()
895 auto *ICI = dyn_cast<ICmpInst>(BI->getCondition()); in parseLoopLatchICmp()
1180 auto *IP = cast<Instruction>(WidenableBR->getCondition()); in predicateLoopExits()
1206 if (isa<Constant>(BI->getCondition())) in predicateLoopExits()
1246 Value *OldCond = BI->getCondition(); in predicateLoopExits()
H A DJumpThreading.cpp1077 Condition = BI->getCondition(); in processBlock()
1079 Condition = SI->getCondition(); in processBlock()
1250 Value *Cond = BI->getCondition(); in processImpliedCondition()
1277 isImpliedCondition(PBI->getCondition(), Cond, DL, CondIsTrue); in processImpliedCondition()
1281 if (!Implication && FICond && isa<FreezeInst>(PBI->getCondition())) { in processImpliedCondition()
1282 if (cast<FreezeInst>(PBI->getCondition())->getOperand(0) == in processImpliedCondition()
2775 auto *BI = BranchInst::Create(NewBB, BB, SI->getCondition(), Pred); in unfoldSelectInstr()
2811 PHINode *CondPHI = dyn_cast<PHINode>(SI->getCondition()); in tryToUnfoldSelect()
2933 Value *Cond = SI->getCondition(); in tryToUnfoldSelectInCurrBB()
2962 Value *Cond = SI->getCondition(); in tryToUnfoldSelectInCurrBB()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/
H A DSparsePropagation.h304 getValueState(KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors()
307 KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors()
322 std::move(BCValue), BI->getCondition()->getType())); in getFeasibleSuccessors()
343 SCValue = getValueState(KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors()
346 KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors()
360 std::move(SCValue), SI.getCondition()->getType())); in getFeasibleSuccessors()
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp276 Value *Cond = SI.getCondition(); in foldSelectOpOp()
718 Value *Cond = Sel.getCondition(); in foldSetClearBits()
757 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul()
2029 Value *Cond = Sel.getCondition(); in foldSelectExtConst()
2119 Value *Cond = Sel.getCondition(); in canonicalizeScalarSelectOfVecs()
2135 Value *Cond = Sel.getCondition(); in foldSelectCmpBitcasts()
2218 if (Select->getCondition() == SI.getCondition()) in foldSelectCmpXchg()
2301 Value *Cond = Sel.getCondition(); in foldSelectFunnelShift()
2326 Value *Cond = Sel.getCondition(); in foldSelectToCopysign()
2371 Value *Cond = Sel.getCondition(); in foldVectorSelect()
[all …]
/openbsd/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DProvenanceAnalysis.cpp46 if (A->getCondition() == SB->getCondition()) in relatedSelect()
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp899 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
952 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
960 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable()
1029 ConditionValues.insert(BI->getCondition()); in getCHRConditionValuesForRegion()
1032 ConditionValues.insert(SI->getCondition()); in getCHRConditionValuesForRegion()
1491 hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions()
1499 hoistValue(SI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions()
1649 Value *V = BI->getCondition(); in assertBranchOrSelectConditionHoisted()
1663 Value *V = SI->getCondition(); in assertBranchOrSelectConditionHoisted()
1911 Value *Cond = BI->getCondition(); in fixupBranch()
[all …]
/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DSelectOptimize.cpp326 assert(DefSI->getCondition() == SI->getCondition() && in getTrueOrFalseValue()
496 IB.CreateFreeze(SI->getCondition(), SI->getName() + ".frozen"); in convertProfitableSIGroups()
547 if (NSI && SI->getCondition() == NSI->getCondition()) { in collectSelectGroups()
948 if (auto *CI = dyn_cast<Instruction>(SI->getCondition())) in computeLoopCosts()
1036 bool VectorCond = !SI->getCondition()->getType()->isIntegerTy(1); in isSelectKindSupported()
H A DHardwareLoops.cpp349 if (BI->isUnconditional() || !isa<ICmpInst>(BI->getCondition())) in CanGenerateTest()
354 auto ICmp = cast<ICmpInst>(BI->getCondition()); in CanGenerateTest()
481 Value *OldCond = ExitBranch->getCondition(); in InsertLoopDec()
524 Value *OldCond = ExitBranch->getCondition(); in UpdateBranch()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DSIAnnotateControlFlow.cpp209 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf()
273 Value *Cond = Term->getCondition(); in handleLoop()
367 PHINode *Phi = dyn_cast<PHINode>(Term->getCondition()); in runOnFunction()
/openbsd/gnu/llvm/llvm/examples/IRTransforms/
H A DSimplifyCFG.cpp148 ConstantInt *CI = dyn_cast<ConstantInt>(BI->getCondition()); in eliminateCondBranches_v1()
184 ConstantInt *CI = dyn_cast<ConstantInt>(BI->getCondition()); in eliminateCondBranches_v2()
/openbsd/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlanHCFGBuilder.cpp222 VPValue *Cond = getOrCreateVPOperand(Br->getCondition()); in createVPInstructionsForVPBB()
312 assert(IRDef2VPValue.count(cast<BranchInst>(TI)->getCondition()) && in buildPlainCFG()
/openbsd/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp242 auto *Cond = dyn_cast<ICmpInst>(BI->getCondition()); in serializeICMPCrossBB()
252 Cond = dyn_cast<ICmpInst>(BI->getCondition()); in serializeICMPCrossBB()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DGuardUtils.cpp66 auto *Cond = BI->getCondition(); in parseWidenableBranch()
H A DLoopNestAnalysis.cpp61 CmpInst *OuterLoopLatchCmp = dyn_cast<CmpInst>(BI->getCondition()); in getOuterLoopLatchCmp()
74 (InnerGuard) ? dyn_cast<CmpInst>(InnerGuard->getCondition()) : nullptr; in getInnerLoopGuardCmp()

123456