| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | FlattenCFG.cpp | 175 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 D | GuardUtils.cpp | 75 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 D | SimplifyCFG.cpp | 785 Cond = dyn_cast<Instruction>(SI->getCondition()); in eraseTerminatorAndDCECond() 788 Cond = dyn_cast<Instruction>(BI->getCondition()); in eraseTerminatorAndDCECond() 806 CV = SI->getCondition(); in isValueEqualityComparison() 808 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison() 809 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison() 838 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in getValueEqualityComparisonCases() 1104 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in getBranchWeights() 2090 BI->getCondition(), BB1V, BB2V, in hoistSuccIdenticalTerminatorToSwitchOrIf() 3169 Value *BrCond = BI->getCondition(); in speculativelyExecuteBB() 3448 if (BI && BI->isConditional() && BI->getCondition() == V && in getKnownValueOnEdge() [all …]
|
| H A D | MisExpect.cpp | 83 Ret = dyn_cast<Instruction>(B->getCondition()); in getInstCondition() 95 Ret = dyn_cast<Instruction>(S->getCondition()); in getInstCondition()
|
| H A D | CodeMoverUtils.cpp | 143 << *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 D | LowerSwitch.cpp | 354 Value *Val = SI->getCondition(); // The value we are switching on... in ProcessSwitchInst() 368 IntegerType *IT = cast<IntegerType>(SI->getCondition()->getType()); in ProcessSwitchInst() 508 Val = SI->getCondition(); in ProcessSwitchInst()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | SparsePropagation.h | 303 getValueState(KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors() 306 KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors() 321 std::move(BCValue), BI->getCondition()->getType())); in getFeasibleSuccessors() 342 SCValue = getValueState(KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors() 345 KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors() 359 std::move(SCValue), SI.getCondition()->getType())); in getFeasibleSuccessors()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | IndVarSimplify.cpp | 466 Cond = BI->getCondition(); in rewriteFirstIterationLoopExitValues() 468 Cond = SI->getCondition(); in rewriteFirstIterationLoopExitValues() 699 ICmpInst *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in isLoopExitTestBasedOn() 718 if (L->isLoopInvariant(BI->getCondition())) in needsLFTR() 722 ICmpInst *Cond = dyn_cast<ICmpInst>(BI->getCondition()); in needsLFTR() 832 Value *Cond = cast<BranchInst>(ExitingBB->getTerminator())->getCondition(); in FindLoopCounter() 1010 if (auto *Cond = dyn_cast<Instruction>(BI->getCondition())) in linearFunctionTestReplace() 1062 << " was: " << *BI->getCondition() << "\n"); in linearFunctionTestReplace() 1065 Value *OrigCond = BI->getCondition(); in linearFunctionTestReplace() 1159 auto *OldCond = BI->getCondition(); in replaceExitCond() [all …]
|
| H A D | SimpleLoopUnswitch.cpp | 528 Value *Cond = skipTrivialSelect(BI.getCondition()); in unswitchTrivialBranch() 650 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalOr()) && in unswitchTrivialBranch() 654 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalAnd()) && in unswitchTrivialBranch() 753 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch() 1090 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions() 1121 isa<Constant>(skipTrivialSelect(BI->getCondition()))) in unswitchAllTrivialConditions() 1321 ClonedConditionToErase = BI->getCondition(); in buildClonedLoopBlocks() 1323 ClonedConditionToErase = SI->getCondition(); in buildClonedLoopBlocks() 2201 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] && in unswitchNontrivialInvariants() 2207 assert(isa<Instruction>(skipTrivialSelect(BI->getCondition())) && in unswitchNontrivialInvariants() [all …]
|
| H A D | LowerExpectIntrinsic.cpp | 77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() 289 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect() 293 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
|
| H A D | LoopBoundSplit.cpp | 214 ICmpInst *ICmp = cast<ICmpInst>(ExitingBI->getCondition()); in canSplitLoopBound() 259 if (L.isLoopInvariant(BI->getCondition())) in findSplitCandidate() 263 ICmpInst *ICmp = cast<ICmpInst>(BI->getCondition()); in findSplitCandidate()
|
| H A D | LoopTermFold.cpp | 73 auto *TermCond = dyn_cast<ICmpInst>(BI->getCondition()); in canFoldTermCondOfLoop() 280 ICmpInst *OldTermCond = cast<ICmpInst>(BI->getCondition()); in RunTermFold()
|
| H A D | GuardWidening.cpp | 81 static Value *getCondition(Instruction *I) { in getCondition() function 92 return cast<BranchInst>(I)->getCondition(); in getCondition() 311 getCondition(ToWiden), *InsertPt); in widenGuard() 363 assert(isa<ConstantInt>(getCondition(I)) && "Should be!"); in run() 482 if (!canBeHoistedTo(getCondition(ToWiden), WideningPoint)) in computeWideningScore()
|
| H A D | LoopPredication.cpp | 780 auto *OldCond = BI->getCondition(); in widenWidenableBranchGuardConditions() 826 auto *ICI = dyn_cast<ICmpInst>(BI->getCondition()); in parseLoopLatchICmp() 1097 auto *IP = cast<Instruction>(WidenableBR->getCondition()); in predicateLoopExits() 1129 if (isa<Constant>(BI->getCondition())) in predicateLoopExits() 1169 Value *OldCond = BI->getCondition(); in predicateLoopExits()
|
| H A D | JumpThreading.cpp | 873 computeValueKnownInPredecessorsImpl(SI->getCondition(), BB, Conds, in computeValueKnownInPredecessorsImpl() 977 Condition = BI->getCondition(); in processBlock() 979 Condition = SI->getCondition(); in processBlock() 1148 Value *Cond = BI->getCondition(); in processImpliedCondition() 1175 isImpliedCondition(PBI->getCondition(), Cond, DL, CondIsTrue); in processImpliedCondition() 1179 if (!Implication && FICond && isa<FreezeInst>(PBI->getCondition())) { in processImpliedCondition() 1180 if (cast<FreezeInst>(PBI->getCondition())->getOperand(0) == in processImpliedCondition() 2809 auto *BI = BranchInst::Create(NewBB, BB, SI->getCondition(), Pred); in unfoldSelectInstr() 2854 PHINode *CondPHI = dyn_cast<PHINode>(SI->getCondition()); in tryToUnfoldSelect() 2974 Value *Cond = SI->getCondition(); in tryToUnfoldSelectInCurrBB() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 63 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C)))) in foldSelectBinOpIdentity() 257 Value *Cond = SI.getCondition(); in foldSelectOpOp() 540 Value *NewSel = Builder.CreateSelect(SI.getCondition(), Swapped ? C : OOp, in foldSelectIntoOp() 843 Value *Cond = Sel.getCondition(); in foldSetClearBits() 882 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() 1445 Value *XeqY, *XeqZ = Sel.getCondition(), *YeqZ = Sel.getTrueValue(); in foldSelectEqualityTest() 2079 Value *CondVal = SI.getCondition(); in foldAddSubSelect() 2154 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() 2286 Value *Cond = Sel.getCondition(); in foldSelectExtConst() 2313 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ProvenanceAnalysis.cpp | 45 if (A->getCondition() == SB->getCondition()) in relatedSelect()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 894 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable() 915 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable() 947 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable() 955 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable() 1024 ConditionValues.insert(BI->getCondition()); in getCHRConditionValuesForRegion() 1027 ConditionValues.insert(SI->getCondition()); in getCHRConditionValuesForRegion() 1383 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT, in setCHRRegions() 1395 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT, in setCHRRegions() 1481 hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions() 1489 hoistValue(SI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DomConditionCache.cpp | 22 findAffectedValues(BI->getCondition(), Affected); in registerBranch()
|
| H A D | GuardUtils.cpp | 75 auto *Cond = BI->getCondition(); in parseWidenableBranch() 142 : cast<BranchInst>(U)->getCondition(); 156 auto Condition = BI->getCondition();
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | HardwareLoops.cpp | 410 if (BI->isUnconditional() || !isa<ICmpInst>(BI->getCondition())) in CanGenerateTest() 415 auto ICmp = cast<ICmpInst>(BI->getCondition()); in CanGenerateTest() 545 Value *OldCond = ExitBranch->getCondition(); in InsertLoopDec() 589 Value *OldCond = ExitBranch->getCondition(); in UpdateBranch()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIAnnotateControlFlow.cpp | 191 {Term->getCondition()}); in openIf() 271 Value *Cond = Term->getCondition(); in handleLoop() 367 PHINode *Phi = dyn_cast<PHINode>(Term->getCondition()); in run()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/Transforms/ |
| H A D | CIRSimplify.cpp | 146 rewriter.replaceAllUsesWith(op, op.getCondition()); in matchAndRewrite() 154 op.getCondition()); in matchAndRewrite()
|
| H A D | FlattenCFG.cpp | 103 rewriter.create<cir::BrCondOp>(loc, ifOp.getCondition(), thenBeforeBody, in matchAndRewrite() 205 op.getCondition(), lowerBoundValue); in condBrToRangeDestination() 394 op, op.getCondition(), defaultDestination, defaultOperands, caseValues, in matchAndRewrite() 412 rewriter.replaceOpWithNewOp<cir::BrCondOp>(op, op.getCondition(), body, in lowerConditionOp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFAdjustOpt.cpp | 224 auto *Cond = dyn_cast<ICmpInst>(BI->getCondition()); in serializeICMPCrossBB() 234 Cond = dyn_cast<ICmpInst>(BI->getCondition()); in serializeICMPCrossBB()
|