Home
last modified time | relevance | path

Searched refs:IfTrue (Results 1 – 16 of 16) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDeletion.cpp331 BasicBlock *IfTrue, *IfFalse; in canProveExitOnFirstIteration() local
334 m_BasicBlock(IfTrue), m_BasicBlock(IfFalse)))) { in canProveExitOnFirstIteration()
360 if (L->contains(IfTrue) && L->contains(IfFalse)) in canProveExitOnFirstIteration()
361 MarkLiveEdge(BB, IfTrue); in canProveExitOnFirstIteration()
371 MarkLiveEdge(BB, IfTrue); in canProveExitOnFirstIteration()
H A DGuardWidening.cpp507 const BasicBlock *IfTrue = nullptr, *IfFalse = nullptr; in computeWideningScore() local
509 if (!match(Term, m_Br(m_Value(Cond), m_BasicBlock(IfTrue), in computeWideningScore()
514 return ConstCond->isAllOnesValue() ? IfTrue : IfFalse; in computeWideningScore()
517 return IfTrue; in computeWideningScore()
518 if (IfTrue->getPostdominatingDeoptimizeCall()) in computeWideningScore()
H A DSimpleLoopUnswitch.cpp2994 ICmpInst::Predicate &Pred, Value *&LHS, Value *&RHS, BasicBlock *&IfTrue, in canonicalizeForInvariantConditionInjection() argument
2996 if (!L.contains(IfTrue)) { in canonicalizeForInvariantConditionInjection()
2998 std::swap(IfTrue, IfFalse); in canonicalizeForInvariantConditionInjection()
3021 const BasicBlock *IfTrue, const BasicBlock *IfFalse, const Loop &L) { in shouldTryInjectInvariantCondition() argument
3028 if (!L.contains(IfTrue) || L.contains(IfFalse)) in shouldTryInjectInvariantCondition()
3032 if (L.getHeader() == IfTrue) in shouldTryInjectInvariantCondition()
3240 BasicBlock *IfTrue = nullptr, *IfFalse = nullptr; in collectUnswitchCandidatesWithInjections() local
3247 m_BasicBlock(IfTrue), m_BasicBlock(IfFalse)))) in collectUnswitchCandidatesWithInjections()
3251 canonicalizeForInvariantConditionInjection(Pred, LHS, RHS, IfTrue, IfFalse, in collectUnswitchCandidatesWithInjections()
3253 if (!shouldTryInjectInvariantCondition(Pred, LHS, RHS, IfTrue, IfFalse, L)) in collectUnswitchCandidatesWithInjections()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp195 unsigned getCondStoreOpcode(unsigned Opc, bool IfTrue) const;
197 MachineInstr *MI, unsigned PredR, bool IfTrue);
200 unsigned PredR, bool IfTrue);
703 bool IfTrue) const { in getCondStoreOpcode()
704 return HII->getCondOpcode(Opc, !IfTrue); in getCondStoreOpcode()
709 unsigned PredR, bool IfTrue) { in predicateInstr() argument
719 unsigned COpc = getCondStoreOpcode(Opc, IfTrue); in predicateInstr()
740 const MCInstrDesc &D = HII->get(IfTrue ? Hexagon::J2_jumpt in predicateInstr()
760 unsigned PredR, bool IfTrue) { in predicateBlockNB() argument
771 predicateInstr(ToB, At, &*I, PredR, IfTrue); in predicateBlockNB()
H A DHexagonGenMux.cpp246 bool IfTrue = HII->isPredicatedTrue(Opc); in genMuxInBlock() local
260 if (IfTrue) in genMuxInBlock()
H A DHexagonExpandCondsets.cpp603 bool IfTrue) { in getCondTfrOpcode() argument
618 return IfTrue ? Hexagon::A2_tfrt : Hexagon::A2_tfrf; in getCondTfrOpcode()
620 return IfTrue ? Hexagon::A2_tfrpt : Hexagon::A2_tfrpf; in getCondTfrOpcode()
633 return IfTrue ? Hexagon::C2_cmoveit : Hexagon::C2_cmoveif; in getCondTfrOpcode()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DIRMutator.cpp446 BasicBlock *IfTrue = BasicBlock::Create(C, "T", F); in mutate() local
451 BranchInst *Branch = BranchInst::Create(IfTrue, IfFalse, Cond); in mutate()
455 connectBlocksToSink({IfTrue, IfFalse}, Sink, IB); in mutate()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h577 BranchInst *GetIfCondition(BasicBlock *BB, BasicBlock *&IfTrue,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.h614 void setTwoSuccessors(VPBlockBase *IfTrue, VPBlockBase *IfFalse) { in setTwoSuccessors() argument
616 appendSuccessor(IfTrue); in setTwoSuccessors()
3603 static void insertTwoBlocksAfter(VPBlockBase *IfTrue, VPBlockBase *IfFalse, in insertTwoBlocksAfter() argument
3605 assert(IfTrue->getSuccessors().empty() && in insertTwoBlocksAfter()
3609 BlockPtr->setTwoSuccessors(IfTrue, IfFalse); in insertTwoBlocksAfter()
3610 IfTrue->setPredecessors({BlockPtr}); in insertTwoBlocksAfter()
3612 IfTrue->setParent(BlockPtr->getParent()); in insertTwoBlocksAfter()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBasicBlockUtils.cpp1802 BranchInst *llvm::GetIfCondition(BasicBlock *BB, BasicBlock *&IfTrue, in GetIfCondition() argument
1857 IfTrue = Pred1; in GetIfCondition()
1861 IfTrue = Pred2; in GetIfCondition()
1885 IfTrue = Pred1; in GetIfCondition()
1888 IfTrue = Pred2; in GetIfCondition()
H A DSimplifyCFG.cpp3489 BasicBlock *IfTrue, *IfFalse; in FoldTwoEntryPHINode() local
3490 BranchInst *DomBI = GetIfCondition(BB, IfTrue, IfFalse); in FoldTwoEntryPHINode()
3629 dbgs() << " T: " << IfTrue->getName() in FoldTwoEntryPHINode()
3648 Value *TrueVal = PN->getIncomingValueForBlock(IfTrue); in FoldTwoEntryPHINode()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp1134 BranchInst::BranchInst(BasicBlock *IfTrue, InsertPosition InsertBefore) in BranchInst() argument
1135 : Instruction(Type::getVoidTy(IfTrue->getContext()), Instruction::Br, in BranchInst()
1138 assert(IfTrue && "Branch destination may not be null!"); in BranchInst()
1139 Op<-1>() = IfTrue; in BranchInst()
1142 BranchInst::BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond, in BranchInst() argument
1144 : Instruction(Type::getVoidTy(IfTrue->getContext()), Instruction::Br, in BranchInst()
1150 Op<-1>() = IfTrue; in BranchInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h2933 explicit BranchInst(BasicBlock *IfTrue,
2935 BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
2974 static BranchInst *Create(BasicBlock *IfTrue,
2976 return new(1) BranchInst(IfTrue, InsertBefore);
2979 static BranchInst *Create(BasicBlock *IfTrue, BasicBlock *IfFalse,
2982 return new(3) BranchInst(IfTrue, IfFalse, Cond, InsertBefore);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp2648 Value *IfTrue, *IfFalse; in foldSelectToPhiImpl() local
2653 IfTrue = Sel.getTrueValue(); in foldSelectToPhiImpl()
2658 IfTrue = Sel.getFalseValue(); in foldSelectToPhiImpl()
2679 Inputs[Pred] = IfTrue->DoPHITranslation(BB, Pred); in foldSelectToPhiImpl()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2531 BasicBlock *IfTrue = I.getSuccessor(1); in shouldKeepJumpConditionsTogether() local
2534 if (BPI->isEdgeHot(I.getParent(), IfTrue)) in shouldKeepJumpConditionsTogether()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp24257 SDValue IfTrue = N->getOperand(1); in performVSelectCombine() local
24263 IfTrue, IfFalse); in performVSelectCombine()