Home
last modified time | relevance | path

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

123456

/freebsd-14.2/contrib/llvm-project/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()
418 Instruction *CInst2 = dyn_cast<Instruction>(DomBI2->getCondition()); in MergeIfRegion()
430 Instruction *CInst1 = dyn_cast<Instruction>(DomBI1->getCondition()); in MergeIfRegion()
489 assert(PBI->getCondition() == CInst2); in MergeIfRegion()
496 Value *NC = Builder.CreateBinOp(CombineOp, CInst1, PBI->getCondition()); in MergeIfRegion()
497 PBI->replaceUsesOfWith(PBI->getCondition(), NC); 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()
2947 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
3248 Value *Cond = BI->getCondition(); in FoldCondBranchOnValueKnownInPredecessorImpl()
4110 ->getCondition(); in mergeConditionalStoreToAddress()
4331 if (PBI->getCondition() == BI->getCondition() && in SimplifyCondBranchToCondBranch()
4453 Value *BICond = BI->getCondition(); in SimplifyCondBranchToCondBranch()
4719 if (SI->getCondition() != V) in tryToSimplifyUncondBranchWithICmpInIt()
5510 Value *Sub = SI->getCondition(); in TurnSwitchRangeIntoICmp()
5580 Value *Cond = SI->getCondition(); in eliminateDeadSwitchCases()
6681 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.cpp356 Value *Val = SI->getCondition(); // The value we are switching on... in ProcessSwitchInst()
370 IntegerType *IT = cast<IntegerType>(SI->getCondition()->getType()); in ProcessSwitchInst()
510 Val = SI->getCondition(); in ProcessSwitchInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DGuardUtils.cpp75 auto *Cond = BI->getCondition(); in parseWidenableBranch()
142 : cast<BranchInst>(U)->getCondition(); in parseWidenableGuard()
156 auto Condition = BI->getCondition(); in extractWidenableCondition()
H A DDomConditionCache.cpp61 findAffectedValues(BI->getCondition(), Affected); in registerBranch()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp460 Cond = BI->getCondition(); in rewriteFirstIterationLoopExitValues()
462 Cond = SI->getCondition(); in rewriteFirstIterationLoopExitValues()
711 if (L->isLoopInvariant(BI->getCondition())) in needsLFTR()
1062 Value *OrigCond = BI->getCondition(); in linearFunctionTestReplace()
1171 auto *OldCond = BI->getCondition(); in replaceExitCond()
1183 auto *OldCond = BI->getCondition(); in createFoldedExitCond()
1325 Value *OldCond = BI->getCondition(); in optimizeLoopExitWithUnknownExitCount()
1433 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in canonicalizeExitCondition()
1479 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in canonicalizeExitCondition()
1757 if (isa<Constant>(BI->getCondition())) in predicateLoopExits()
[all …]
H A DSimpleLoopUnswitch.cpp520 Value *Cond = skipTrivialSelect(BI.getCondition()); in unswitchTrivialBranch()
742 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
1076 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
1303 ClonedConditionToErase = BI->getCondition(); in buildClonedLoopBlocks()
1305 ClonedConditionToErase = SI->getCondition(); in buildClonedLoopBlocks()
2203 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants()
2369 SI->getCondition(), SI->getCondition()->getName() + ".fr", SI)); in unswitchNontrivialInvariants()
2915 auto *Cond = SI->getCondition(); in collectUnswitchCandidates()
2931 if (!isa<Constant>(SI->getCondition()) && in collectUnswitchCandidates()
2942 AddUnswitchCandidatesForInst(BI, BI->getCondition()); in collectUnswitchCandidates()
[all …]
H A DLowerExpectIntrinsic.cpp77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
287 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect()
291 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 DCorrelatedValuePropagation.cpp123 if (S->getType()->isVectorTy() || isa<Constant>(S->getCondition())) in processSelect()
131 C = LVI->getConstantOnEdge(S->getCondition(), PN->getIncomingBlock(U), in processSelect()
134 C = getConstantAt(S->getCondition(), I, LVI); in processSelect()
229 Value *Condition = SI->getCondition(); in getValueOnEdge()
362 Value *Cond = I->getCondition(); in processSwitch()
390 Cond = SI->getCondition(); in processSwitch()
H A DGuardWidening.cpp81 static Value *getCondition(Instruction *I) { in getCondition() function
92 return cast<BranchInst>(I)->getCondition(); in getCondition()
309 getCondition(ToWiden), InsertPt); in widenGuard()
361 assert(isa<ConstantInt>(getCondition(I)) && "Should be!"); in run()
480 if (!canBeHoistedTo(getCondition(ToWiden), WideningPoint)) in computeWideningScore()
H A DLoopPredication.cpp781 auto *OldCond = BI->getCondition(); in widenWidenableBranchGuardConditions()
827 auto *ICI = dyn_cast<ICmpInst>(BI->getCondition()); in parseLoopLatchICmp()
1098 auto *IP = cast<Instruction>(WidenableBR->getCondition()); in predicateLoopExits()
1130 if (isa<Constant>(BI->getCondition())) in predicateLoopExits()
1170 Value *OldCond = BI->getCondition(); in predicateLoopExits()
H A DJumpThreading.cpp991 Condition = BI->getCondition(); in processBlock()
993 Condition = SI->getCondition(); in processBlock()
1164 Value *Cond = BI->getCondition(); in processImpliedCondition()
1191 isImpliedCondition(PBI->getCondition(), Cond, DL, CondIsTrue); in processImpliedCondition()
1195 if (!Implication && FICond && isa<FreezeInst>(PBI->getCondition())) { in processImpliedCondition()
1196 if (cast<FreezeInst>(PBI->getCondition())->getOperand(0) == in processImpliedCondition()
2778 auto *BI = BranchInst::Create(NewBB, BB, SI->getCondition(), Pred); in unfoldSelectInstr()
2823 PHINode *CondPHI = dyn_cast<PHINode>(SI->getCondition()); in tryToUnfoldSelect()
2945 Value *Cond = SI->getCondition(); in tryToUnfoldSelectInCurrBB()
2974 Value *Cond = SI->getCondition(); in tryToUnfoldSelectInCurrBB()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp277 Value *Cond = SI.getCondition(); in foldSelectOpOp()
804 Value *Cond = Sel.getCondition(); in foldSetClearBits()
843 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul()
2088 Value *Cond = Sel.getCondition(); in foldSelectExtConst()
2160 Value *Cond = Sel.getCondition(); in canonicalizeScalarSelectOfVecs()
2176 Value *Cond = Sel.getCondition(); in foldSelectCmpBitcasts()
2259 if (Select->getCondition() == SI.getCondition()) in foldSelectCmpXchg()
2342 Value *Cond = Sel.getCondition(); in foldSelectFunnelShift()
2367 Value *Cond = Sel.getCondition(); in foldSelectToCopysign()
2415 Value *Cond = Sel.getCondition(); in foldVectorSelect()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp163 Value *getCondition() const { in getCondition() function in __anonf7d98fdb0111::SelectOptimizeImpl::SelectLike
165 return Sel->getCondition(); in getCondition()
513 assert(DefSI->getCondition() == SI.getCondition() && in getTrueOrFalseValue()
711 auto *CondFr = IB.CreateFreeze(SI.getCondition(), in convertProfitableSIGroups()
712 SI.getCondition()->getName() + ".frozen"); in convertProfitableSIGroups()
767 if (NSI && SI.getCondition() == NSI.getCondition()) { in collectSelectGroups()
1168 if (auto *CI = dyn_cast<Instruction>(SI.getCondition())) in computeLoopCosts()
1257 bool VectorCond = !SI.getCondition()->getType()->isIntegerTy(1); in isSelectKindSupported()
H A DHardwareLoops.cpp411 if (BI->isUnconditional() || !isa<ICmpInst>(BI->getCondition())) in CanGenerateTest()
416 auto ICmp = cast<ICmpInst>(BI->getCondition()); in CanGenerateTest()
544 Value *OldCond = ExitBranch->getCondition(); in InsertLoopDec()
587 Value *OldCond = ExitBranch->getCondition(); in UpdateBranch()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DProvenanceAnalysis.cpp46 if (A->getCondition() == SB->getCondition()) in relatedSelect()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp898 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
951 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
959 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable()
1028 ConditionValues.insert(BI->getCondition()); in getCHRConditionValuesForRegion()
1031 ConditionValues.insert(SI->getCondition()); in getCHRConditionValuesForRegion()
1490 hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions()
1498 hoistValue(SI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions()
1648 Value *V = BI->getCondition(); in assertBranchOrSelectConditionHoisted()
1662 Value *V = SI->getCondition(); in assertBranchOrSelectConditionHoisted()
1915 Value *Cond = BI->getCondition(); in fixupBranch()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIAnnotateControlFlow.cpp211 Value *IfCall = IRB.CreateCall(If, {Term->getCondition()}); in openIf()
284 Value *Cond = Term->getCondition(); in handleLoop()
380 PHINode *Phi = dyn_cast<PHINode>(Term->getCondition()); in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp225 auto *Cond = dyn_cast<ICmpInst>(BI->getCondition()); in serializeICMPCrossBB()
235 Cond = dyn_cast<ICmpInst>(BI->getCondition()); in serializeICMPCrossBB()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanHCFGBuilder.cpp298 VPValue *Cond = getOrCreateVPOperand(Br->getCondition()); in createVPInstructionsForVPBB()
405 assert(IRDef2VPValue.contains(BI->getCondition()) && in buildPlainCFG()

123456