Home
last modified time | relevance | path

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

123456

/openbsd-src/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.cpp759 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorAndDCECond()
762 Cond = dyn_cast<Instruction>(BI->getCondition()); in EraseTerminatorAndDCECond()
780 CV = SI->getCondition(); in isValueEqualityComparison()
782 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison()
783 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison()
812 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases()
1079 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights()
1734 Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
2859 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
3134 if (BI && BI->isConditional() && BI->getCondition() == V && in getKnownValueOnEdge()
[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-src/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()
704 ICmpInst *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in isLoopExitTestBasedOn()
723 if (L->isLoopInvariant(BI->getCondition())) in needsLFTR()
727 ICmpInst *Cond = dyn_cast<ICmpInst>(BI->getCondition()); in needsLFTR()
899 Value *Cond = cast<BranchInst>(ExitingBB->getTerminator())->getCondition(); in FindLoopCounter()
1130 if (auto *Cond = dyn_cast<Instruction>(BI->getCondition())) in linearFunctionTestReplace()
1183 << " was: " << *BI->getCondition() << "\n"); in linearFunctionTestReplace()
1186 Value *OrigCond = BI->getCondition(); in linearFunctionTestReplace()
1295 auto *OldCond = BI->getCondition(); in replaceExitCond()
[all …]
H A DSimpleLoopUnswitch.cpp479 Value *Cond = skipTrivialSelect(BI.getCondition()); in unswitchTrivialBranch()
600 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalOr()) && in unswitchTrivialBranch()
604 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalAnd()) && 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()
2094 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] && in unswitchNontrivialInvariants()
2100 assert(isa<Instruction>(skipTrivialSelect(BI->getCondition())) && in unswitchNontrivialInvariants()
[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.cpp973 computeValueKnownInPredecessorsImpl(SI->getCondition(), BB, Conds, in computeValueKnownInPredecessorsImpl()
1077 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()
[all …]
/openbsd-src/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-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp62 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C)))) in foldSelectBinOpIdentity()
276 Value *Cond = SI.getCondition(); in foldSelectOpOp()
498 Value *NewSel = Builder.CreateSelect(SI.getCondition(), Swapped ? C : OOp, in foldSelectIntoOp()
718 Value *Cond = Sel.getCondition(); in foldSetClearBits()
757 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul()
1780 const PHINode *CondPHI = cast<PHINode>(SI.getCondition()); in canSelectOperandBeMappingIntoPredBlock()
1822 Value *CondVal = SI.getCondition(); in foldAddSubSelect()
1897 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect()
2029 Value *Cond = Sel.getCondition(); in foldSelectExtConst()
2074 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DProvenanceAnalysis.cpp46 if (A->getCondition() == SB->getCondition()) in relatedSelect()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp899 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
920 bool IsHoistable = checkHoistValue(Branch->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()
1393 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT, in setCHRRegions()
1405 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT, in setCHRRegions()
1491 hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions()
1499 hoistValue(SI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions()
[all …]
/openbsd-src/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-src/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-src/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-src/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-src/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-src/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