Home
last modified time | relevance | path

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

/freebsd-14.2/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.cpp504 const BasicBlock *IfTrue = nullptr, *IfFalse = nullptr; in computeWideningScore() local
506 if (!match(Term, m_Br(m_Value(Cond), m_BasicBlock(IfTrue), in computeWideningScore()
511 return ConstCond->isAllOnesValue() ? IfTrue : IfFalse; in computeWideningScore()
514 return IfTrue; in computeWideningScore()
515 if (IfTrue->getPostdominatingDeoptimizeCall()) in computeWideningScore()
H A DSimpleLoopUnswitch.cpp2973 ICmpInst::Predicate &Pred, Value *&LHS, Value *&RHS, BasicBlock *&IfTrue, in canonicalizeForInvariantConditionInjection() argument
2975 if (!L.contains(IfTrue)) { in canonicalizeForInvariantConditionInjection()
2977 std::swap(IfTrue, IfFalse); in canonicalizeForInvariantConditionInjection()
3000 const BasicBlock *IfTrue, const BasicBlock *IfFalse, const Loop &L) { in shouldTryInjectInvariantCondition() argument
3007 if (!L.contains(IfTrue) || L.contains(IfFalse)) in shouldTryInjectInvariantCondition()
3011 if (L.getHeader() == IfTrue) in shouldTryInjectInvariantCondition()
3219 BasicBlock *IfTrue = nullptr, *IfFalse = nullptr; in collectUnswitchCandidatesWithInjections() local
3226 m_BasicBlock(IfTrue), m_BasicBlock(IfFalse)))) in collectUnswitchCandidatesWithInjections()
3230 canonicalizeForInvariantConditionInjection(Pred, LHS, RHS, IfTrue, IfFalse, in collectUnswitchCandidatesWithInjections()
3234 if (!shouldTryInjectBasingOnMetadata(cast<BranchInst>(Term), IfTrue)) in collectUnswitchCandidatesWithInjections()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DIRMutator.cpp445 BasicBlock *IfTrue = BasicBlock::Create(C, "T", F); in mutate() local
450 BranchInst *Branch = BranchInst::Create(IfTrue, IfFalse, Cond); in mutate()
454 connectBlocksToSink({IfTrue, IfFalse}, Sink, IB); in mutate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp1222 BranchInst::BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore) in BranchInst() argument
1223 : Instruction(Type::getVoidTy(IfTrue->getContext()), Instruction::Br, in BranchInst()
1226 assert(IfTrue && "Branch destination may not be null!"); in BranchInst()
1227 Op<-1>() = IfTrue; in BranchInst()
1232 : Instruction(Type::getVoidTy(IfTrue->getContext()), Instruction::Br, in BranchInst()
1238 Op<-1>() = IfTrue; in BranchInst()
1244 BranchInst::BranchInst(BasicBlock *IfTrue, BasicBlock *InsertAtEnd) in BranchInst() argument
1245 : Instruction(Type::getVoidTy(IfTrue->getContext()), Instruction::Br, in BranchInst()
1247 assert(IfTrue && "Branch destination may not be null!"); in BranchInst()
1248 Op<-1>() = IfTrue; in BranchInst()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.h599 void setTwoSuccessors(VPBlockBase *IfTrue, VPBlockBase *IfFalse) { in setTwoSuccessors() argument
601 appendSuccessor(IfTrue); in setTwoSuccessors()
2996 static void insertTwoBlocksAfter(VPBlockBase *IfTrue, VPBlockBase *IfFalse, in insertTwoBlocksAfter() argument
2998 assert(IfTrue->getSuccessors().empty() && in insertTwoBlocksAfter()
3002 BlockPtr->setTwoSuccessors(IfTrue, IfFalse); in insertTwoBlocksAfter()
3003 IfTrue->setPredecessors({BlockPtr}); in insertTwoBlocksAfter()
3005 IfTrue->setParent(BlockPtr->getParent()); in insertTwoBlocksAfter()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h3167 BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
3169 BranchInst(BasicBlock *IfTrue, BasicBlock *InsertAtEnd);
3170 BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond,
3209 static BranchInst *Create(BasicBlock *IfTrue,
3211 return new(1) BranchInst(IfTrue, InsertBefore);
3214 static BranchInst *Create(BasicBlock *IfTrue, BasicBlock *IfFalse,
3216 return new(3) BranchInst(IfTrue, IfFalse, Cond, InsertBefore);
3219 static BranchInst *Create(BasicBlock *IfTrue, BasicBlock *InsertAtEnd) {
3220 return new(1) BranchInst(IfTrue, InsertAtEnd);
3223 static BranchInst *Create(BasicBlock *IfTrue, BasicBlock *IfFalse,
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBasicBlockUtils.cpp1790 BranchInst *llvm::GetIfCondition(BasicBlock *BB, BasicBlock *&IfTrue, in GetIfCondition() argument
1845 IfTrue = Pred1; in GetIfCondition()
1849 IfTrue = Pred2; in GetIfCondition()
1873 IfTrue = Pred1; in GetIfCondition()
1876 IfTrue = Pred2; in GetIfCondition()
H A DSimplifyCFG.cpp3426 BasicBlock *IfTrue, *IfFalse; in FoldTwoEntryPHINode() local
3427 BranchInst *DomBI = GetIfCondition(BB, IfTrue, IfFalse); in FoldTwoEntryPHINode()
3562 << " T: " << IfTrue->getName() in FoldTwoEntryPHINode()
3581 Value *TrueVal = PN->getIncomingValueForBlock(IfTrue); in FoldTwoEntryPHINode()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h577 BranchInst *GetIfCondition(BasicBlock *BB, BasicBlock *&IfTrue,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp2507 Value *IfTrue, *IfFalse; in foldSelectToPhiImpl() local
2512 IfTrue = Sel.getTrueValue(); in foldSelectToPhiImpl()
2517 IfTrue = Sel.getFalseValue(); in foldSelectToPhiImpl()
2538 Inputs[Pred] = IfTrue->DoPHITranslation(BB, Pred); in foldSelectToPhiImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp22826 SDValue IfTrue = N->getOperand(1); in performVSelectCombine() local
22832 IfTrue, IfFalse); in performVSelectCombine()