Searched refs:getCondition (Results 1 - 25 of 121) sorted by relevance

12345

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DGuardUtils.cpp75 CheckBI->setCondition(B.CreateAnd(CheckBI->getCondition(), WC,
101 Instruction *WCAnd = cast<Instruction>(WidenableBR->getCondition());
120 Instruction *WCAnd = cast<Instruction>(WidenableBR->getCondition());
H A DFlattenCFG.cpp177 Value *PC = PBI->getCondition();
255 auto *CI = dyn_cast<CmpInst>(BI->getCondition());
284 Value *PC = PBI->getCondition();
293 Value *CC = PBI->getCondition();
482 assert(PBI->getCondition() == IfCond2);
H A DSimplifyCFG.cpp291 // 3> SI2->getCondition() and Cond have same operands.
292 CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition());
703 Cond = dyn_cast<Instruction>(SI->getCondition());
706 Cond = dyn_cast<Instruction>(BI->getCondition());
724 CV = SI->getCondition();
726 if (BI->isConditional() && BI->getCondition()->hasOneUse())
727 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) {
756 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
1001 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
1440 Builder.CreateSelect(BI->getCondition(), BB1
[all...]
H A DCodeMoverUtils.cpp141 << *BI->getCondition() << "\" is true from "
144 ControlCondition(BI->getCondition(), true));
147 << *BI->getCondition() << "\" is false from "
150 ControlCondition(BI->getCondition(), false));
H A DPredicateInfo.cpp475 if (match(BI->getCondition(), m_And(m_Cmp(Pred, m_Value(), m_Value()),
477 match(BI->getCondition(), m_Or(m_Cmp(Pred, m_Value(), m_Value()),
479 auto *BinOp = cast<BinaryOperator>(BI->getCondition());
486 ConditionsToProcess.push_back(BI->getCondition());
487 } else if (isa<CmpInst>(BI->getCondition())) {
488 ConditionsToProcess.push_back(BI->getCondition());
515 Value *Op = SI->getCondition();
H A DMisExpect.cpp57 Ret = dyn_cast<Instruction>(B->getCondition());
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSparsePropagation.h302 getValueState(KeyInfo::getLatticeKeyFromValue(BI->getCondition()));
305 KeyInfo::getLatticeKeyFromValue(BI->getCondition()));
320 std::move(BCValue), BI->getCondition()->getType()));
341 SCValue = getValueState(KeyInfo::getLatticeKeyFromValue(SI.getCondition()));
344 KeyInfo::getLatticeKeyFromValue(SI.getCondition()));
358 std::move(SCValue), SI.getCondition()->getType()));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DProvenanceAnalysis.cpp47 if (A->getCondition() == SB->getCondition())
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGuardWidening.cpp81 static Value *getCondition(Instruction *I) { function in namespace:__anon4632
92 return cast<BranchInst>(I)->getCondition();
262 widenCondCommon(getCondition(ToWiden), NewCondition, ToWiden, Result,
314 assert(isa<ConstantInt>(getCondition(I)) && "Should be!");
334 if (isa<ConstantInt>(getCondition(Instr)))
372 LLVM_DEBUG(dbgs() << "Score between " << *getCondition(Instr)
373 << " and " << *getCondition(Candidate) << " is "
393 widenGuard(BestSoFar, getCondition(Instr), InvertCondition);
421 if (!isAvailableAt(getCondition(DominatedInstr), DominatingGuard))
432 if (isWideningCondProfitable(getCondition(DominatedInst
[all...]
H A DSimpleLoopUnswitch.cpp378 if (L.isLoopInvariant(BI.getCondition())) {
379 Invariants.push_back(BI.getCondition());
382 if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition()))
412 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::Or)
415 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::And)
493 assert(cast<Instruction>(BI.getCondition())->getOpcode() ==
497 assert(cast<Instruction>(BI.getCondition())->getOpcode() ==
593 Value *LoopCond = SI.getCondition();
922 if (isa<Constant>(SI->getCondition()))
952 if (!BI->isConditional() || isa<Constant>(BI->getCondition()))
[all...]
H A DLowerExpectIntrinsic.cpp80 CallInst *CI = dyn_cast<CallInst>(SI.getCondition());
281 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition());
285 CI = dyn_cast<CallInst>(BSI.getCondition());
H A DLoopUnswitch.cpp570 Value *Cond = BInst->getCondition();
742 Value *LoopCond = findLIVLoopCondition(BI->getCondition(), CurrentLoop,
752 Value *SC = SI->getCondition();
816 Value *LoopCond = findLIVLoopCondition(SI->getCondition(), CurrentLoop,
1073 } else if (BI->getCondition() == ConstantInt::getTrue(Context)) {
1075 } else if (BI->getCondition() == ConstantInt::getFalse(Context)) {
1084 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition());
1107 Value *LoopCond = findLIVLoopCondition(BI->getCondition(), CurrentLoop,
1113 if (!LoopCond || LoopCond != BI->getCondition())
1142 Value *LoopCond = findLIVLoopCondition(SI->getCondition(), CurrentLoo
[all...]
H A DLoopPredication.cpp825 unsigned NumWidened = collectChecks(Checks, BI->getCondition(),
835 auto *OldCond = BI->getCondition();
864 auto *ICI = dyn_cast<ICmpInst>(BI->getCondition());
1112 auto *IP = cast<Instruction>(WidenableBR->getCondition());
1132 if (isa<Constant>(BI->getCondition()))
1172 Value *OldCond = BI->getCondition();
H A DIndVarSimplify.cpp515 Cond = BI->getCondition();
517 Cond = SI->getCondition();
1560 UpdateRangeFromCondition(BI->getCondition(), /*TrueDest=*/true);
1563 UpdateRangeFromCondition(BI->getCondition(), /*TrueDest=*/false);
1729 ICmpInst *ICmp = dyn_cast<ICmpInst>(BI->getCondition());
1748 if (L->isLoopInvariant(BI->getCondition()))
1752 ICmpInst *Cond = dyn_cast<ICmpInst>(BI->getCondition());
1921 Value *Cond = cast<BranchInst>(ExitingBB->getTerminator())->getCondition();
2159 if (auto *Cond = dyn_cast<Instruction>(BI->getCondition()))
2212 << " was: " << *BI->getCondition() << "\
[all...]
H A DSCCP.cpp625 ValueLatticeElement BCValue = getValueState(BI->getCondition());
651 ValueLatticeElement SCValue = getValueState(SI->getCondition());
914 ValueLatticeElement CondValue = getValueState(I.getCondition());
1521 if (!getValueState(BI->getCondition()).isUnknownOrUndef())
1526 if (isa<UndefValue>(BI->getCondition())) {
1574 !getValueState(SI->getCondition()).isUnknownOrUndef())
1579 if (isa<UndefValue>(SI->getCondition())) {
1848 if (!isa<ConstantInt>(SI->getCondition())) {
1854 if (!isa<ConstantInt>(BI->getCondition())) {
H A DCorrelatedValuePropagation.cpp127 if (isa<Constant>(S->getCondition())) return false;
129 Constant *C = LVI->getConstant(S->getCondition(), S->getParent(), S);
226 Value *Condition = SI->getCondition();
336 Value *Cond = I->getCondition();
399 Cond = SI->getCondition();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIAnnotateControlFlow.cpp214 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term);
270 Value *Cond = Term->getCondition();
352 PHINode *Phi = dyn_cast<PHINode>(Term->getCondition());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DGuardUtils.cpp66 auto *Cond = BI->getCondition();
H A DLoopNestAnalysis.cpp88 const CmpInst *OuterLoopLatchCmp = dyn_cast<CmpInst>(BI->getCondition());
98 (InnerGuard) ? dyn_cast<CmpInst>(InnerGuard->getCondition()) : nullptr;
H A DDivergenceAnalysis.cpp115 return isDivergent(*BranchTerm->getCondition());
118 return isDivergent(*SwitchTerm->getCondition());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp65 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C))))
295 Value *Cond = SI.getCondition();
444 Value *NewSel = Builder.CreateSelect(SI.getCondition(), OOp, C);
475 Value *NewSel = Builder.CreateSelect(SI.getCondition(), C, OOp);
678 Value *Cond = Sel.getCondition();
1574 const PHINode *CondPHI = cast<PHINode>(SI.getCondition());
1665 Builder.CreateSelect(SI->getCondition(), SI->getFalseValue(),
1724 Value *CondVal = SI.getCondition();
1799 Value *CondVal = SI.getCondition();
1933 Value *Cond = Sel.getCondition();
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanHCFGBuilder.cpp207 getOrCreateVPOperand(Br->getCondition());
291 Value *BrCond = Br->getCondition();
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DPredicateInfo.h164 SI->getCondition()),
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DHardwareLoops.cpp354 if (BI->isUnconditional() || !isa<ICmpInst>(BI->getCondition()))
359 auto ICmp = cast<ICmpInst>(BI->getCondition());
463 Value *OldCond = ExitBranch->getCondition();
506 Value *OldCond = ExitBranch->getCondition();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp913 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint,
934 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint,
967 assert(checkHoistValue(Branch->getCondition(), InsertPoint,
975 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT,
1044 ConditionValues.insert(BI->getCondition());
1047 ConditionValues.insert(SI->getCondition());
1408 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT,
1420 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT,
1506 hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap,
1514 hoistValue(SI->getCondition(), HoistPoin
[all...]

Completed in 368 milliseconds

12345