Home
last modified time | relevance | path

Searched refs:TrueBB (Results 1 – 20 of 20) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DIfConversion.cpp147 MachineBasicBlock *TrueBB = nullptr; member
610 if (SuccBB != TrueBB) in findFalseBlock()
623 std::swap(BBI.TrueBB, BBI.FalseBB); in reverseBranchCondition()
894 MachineBasicBlock *TT = TrueBBI.TrueBB; in ValidForkedDiamond()
896 MachineBasicBlock *FT = FalseBBI.TrueBB; in ValidForkedDiamond()
969 MachineBasicBlock *TT = TrueBBI.TrueBB; in ValidDiamond()
970 MachineBasicBlock *FT = FalseBBI.TrueBB; in ValidDiamond()
1022 BBI.TrueBB = BBI.FalseBB = nullptr; in AnalyzeBranches()
1027 BBI.TrueBB = nullptr; in AnalyzeBranches()
1265 BBStack.push_back(*BBI.TrueBB); in AnalyzeBlock()
[all …]
H A DBranchFolding.cpp1788 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
1790 if (SuccBB != TrueBB) in findFalseBlock()
H A DCodeGenPrepare.cpp1878 BasicBlock *TrueBB, *FalseBB; in foldICmpWithDominatingICmp() local
1879 if (!match(DomBB->getTerminator(), m_Br(m_Value(DomCond), TrueBB, FalseBB))) in foldICmpWithDominatingICmp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVExpandPseudoInsts.cpp177 MachineBasicBlock *TrueBB = MF->CreateMachineBasicBlock(MBB.getBasicBlock()); in expandCCOp() local
180 MF->insert(++MBB.getIterator(), TrueBB); in expandCCOp()
181 MF->insert(++TrueBB->getIterator(), MergeBB); in expandCCOp()
201 BuildMI(TrueBB, DL, TII->get(RISCV::ADDI), DestReg) in expandCCOp()
237 BuildMI(TrueBB, DL, TII->get(NewOpc), DestReg) in expandCCOp()
242 TrueBB->addSuccessor(MergeBB); in expandCCOp()
247 MBB.addSuccessor(TrueBB); in expandCCOp()
255 computeAndAddLiveIns(LiveRegs, *TrueBB); in expandCCOp()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h130 MachineBasicBlock *TrueBB, *FalseBB; member
150 TrueBB(truebb), FalseBB(falsebb), ThisBB(me), DL(dl), in CC()
161 CmpRHS(cmprhs), TrueBB(truebb), FalseBB(falsebb), ThisBB(me),
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp889 MachineBasicBlock *TrueBB = nullptr, *FalseBB = nullptr; in getBranch() local
894 TII->analyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs); in getBranch()
903 assert(((R != MipsInstrInfo::BT_Uncond) || (TrueBB == &Dst))); in getBranch()
908 assert((TrueBB == &Dst) || (FalseBB == &Dst)); in getBranch()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineCFGStructurizer.cpp1856 MachineBasicBlock *TrueBB = nullptr; in rewriteCodeBBTerminator() local
1860 TII->analyzeBranch(*CodeBB, TrueBB, FalseBB, Cond); in rewriteCodeBBTerminator()
1864 if (FalseBB == nullptr && TrueBB == nullptr && FallthroughBB == nullptr) { in rewriteCodeBBTerminator()
1874 if (FalseBB == nullptr && TrueBB == nullptr) { in rewriteCodeBBTerminator()
1875 TrueBB = FallthroughBB; in rewriteCodeBBTerminator()
1876 } else if (TrueBB != nullptr) { in rewriteCodeBBTerminator()
1878 (FallthroughBB && (FallthroughBB != TrueBB)) ? FallthroughBB : FalseBB; in rewriteCodeBBTerminator()
1881 if ((TrueBB != nullptr && FalseBB == nullptr) || (TrueBB == FalseBB)) { in rewriteCodeBBTerminator()
1883 BBSelectReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
1889 TrueBBReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64LoopIdiomTransform.cpp298 BasicBlock *TrueBB; in recognizeByteCompare() local
302 m_BasicBlock(TrueBB), m_BasicBlock(FoundBB))) || in recognizeByteCompare()
303 WhilePred != ICmpInst::Predicate::ICMP_EQ || !CurLoop->contains(TrueBB)) in recognizeByteCompare()
H A DAArch64ISelLowering.cpp2699 MachineBasicBlock *TrueBB = MF->CreateMachineBasicBlock(LLVM_BB); in EmitF128CSEL() local
2701 MF->insert(It, TrueBB); in EmitF128CSEL()
2709 BuildMI(MBB, DL, TII->get(AArch64::Bcc)).addImm(CondCode).addMBB(TrueBB); in EmitF128CSEL()
2711 MBB->addSuccessor(TrueBB); in EmitF128CSEL()
2715 TrueBB->addSuccessor(EndBB); in EmitF128CSEL()
2718 TrueBB->addLiveIn(AArch64::NZCV); in EmitF128CSEL()
2724 .addMBB(TrueBB) in EmitF128CSEL()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp2225 BasicBlock *TrueBB, *FalseBB; in detectShiftUntilBitTestIdiom() local
2228 m_BasicBlock(TrueBB), m_BasicBlock(FalseBB)))) { in detectShiftUntilBitTestIdiom()
2292 std::swap(TrueBB, FalseBB); in detectShiftUntilBitTestIdiom()
2297 if (TrueBB != LoopHeaderBB) { in detectShiftUntilBitTestIdiom()
2584 BasicBlock *TrueBB, *FalseBB; in detectShiftUntilZeroIdiom() local
2586 m_Br(m_Instruction(ValShiftedIsZero), m_BasicBlock(TrueBB), in detectShiftUntilZeroIdiom()
2645 std::swap(TrueBB, FalseBB); in detectShiftUntilZeroIdiom()
H A DDeadStoreElimination.cpp1893 BasicBlock *TrueBB, *FalseBB; in tryFoldIntoCalloc() local
1894 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Ptr), m_Zero()), TrueBB, in tryFoldIntoCalloc()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprComplex.cpp904 llvm::BasicBlock *TrueBB = in EmitRangeReductionDiv() local
909 Builder.CreateCondBr(IsR, TrueBB, FalseBB); in EmitRangeReductionDiv()
911 CGF.EmitBlock(TrueBB); in EmitRangeReductionDiv()
954 VALr->addIncoming(DSTTr, TrueBB); in EmitRangeReductionDiv()
957 VALi->addIncoming(DSTTi, TrueBB); in EmitRangeReductionDiv()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp279 BasicBlock *TrueBB, BasicBlock *FalseBB,
4557 BasicBlock *KeepEdge1 = TrueBB; in SimplifyTerminatorOnSelect()
4558 BasicBlock *KeepEdge2 = TrueBB != FalseBB ? FalseBB : nullptr; in SimplifyTerminatorOnSelect()
4573 if (Succ != TrueBB && Succ != FalseBB) in SimplifyTerminatorOnSelect()
4583 if (TrueBB == FalseBB) { in SimplifyTerminatorOnSelect()
4586 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
4590 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in SimplifyTerminatorOnSelect()
4594 } else if (KeepEdge1 && (KeepEdge2 || TrueBB == FalseBB)) { in SimplifyTerminatorOnSelect()
4604 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
4638 BasicBlock *TrueBB = SI->findCaseValue(TrueVal)->getCaseSuccessor(); in SimplifySwitchOnSelect() local
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp567 Cases[0].TrueBB == Cases[1].ThisBB) in shouldEmitAsBranches()
910 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
911 addMachineCFGPred({SwitchBB->getBasicBlock(), CB.TrueBB->getBasicBlock()}, in emitSwitchCase()
914 if (CB.TrueBB != CB.ThisBB->getNextNode()) in emitSwitchCase()
915 MIB.buildBr(*CB.TrueBB); in emitSwitchCase()
960 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
962 addMachineCFGPred({SwitchBB->getBasicBlock(), CB.TrueBB->getBasicBlock()}, in emitSwitchCase()
967 if (CB.TrueBB != CB.FalseBB) in emitSwitchCase()
974 MIB.buildBrCond(Cond, *CB.TrueBB); in emitSwitchCase()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp3208 MachineBasicBlock *TrueBB = F->CreateMachineBasicBlock(LLVM_BB); in emitVecCondBranchPseudo() local
3212 F->insert(It, TrueBB); in emitVecCondBranchPseudo()
3224 BuildMI(BB, DL, TII->get(LoongArch::BCNEZ)).addReg(FCC).addMBB(TrueBB); in emitVecCondBranchPseudo()
3226 BB->addSuccessor(TrueBB); in emitVecCondBranchPseudo()
3238 BuildMI(TrueBB, DL, TII->get(LoongArch::ADDI_W), RD2) in emitVecCondBranchPseudo()
3241 TrueBB->addSuccessor(SinkBB); in emitVecCondBranchPseudo()
3249 .addMBB(TrueBB); in emitVecCondBranchPseudo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2998 BasicBlock *TrueBB, *FalseBB; in tryToMoveFreeBeforeNullTest() local
3004 TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest()
3010 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest()
3012 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) && in tryToMoveFreeBeforeNullTest()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2584 if (Cases[0].CC == ISD::SETEQ && Cases[0].TrueBB == Cases[1].ThisBB) in ShouldEmitAsBranches()
2701 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2703 if (CB.TrueBB != NextBlock(SwitchBB)) { in visitSwitchCase()
2705 DAG.getBasicBlock(CB.TrueBB))); in visitSwitchCase()
2757 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2760 if (CB.TrueBB != CB.FalseBB) in visitSwitchCase()
2766 if (CB.TrueBB == NextBlock(SwitchBB)) { in visitSwitchCase()
2767 std::swap(CB.TrueBB, CB.FalseBB); in visitSwitchCase()
2774 DAG.getBasicBlock(CB.TrueBB)); in visitSwitchCase()
H A DSelectionDAGISel.cpp1993 Succs.push_back(SDB->SL->SwitchCases[i].TrueBB); in FinishBasicBlock()
1994 if (SDB->SL->SwitchCases[i].TrueBB != SDB->SL->SwitchCases[i].FalseBB) in FinishBasicBlock()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp8485 BasicBlock *TrueBB, *FalseBB; in getDomPredecessorCondition() local
8486 if (!match(PredBB->getTerminator(), m_Br(m_Value(PredCond), TrueBB, FalseBB))) in getDomPredecessorCondition()
8490 if (TrueBB == FalseBB) in getDomPredecessorCondition()
8493 assert((TrueBB == ContextBB || FalseBB == ContextBB) && in getDomPredecessorCondition()
8497 return {PredCond, TrueBB == ContextBB}; in getDomPredecessorCondition()
H A DScalarEvolution.cpp13987 BasicBlock *TrueBB, *FalseBB; in getReachableBlocks() local
13988 if (match(BB->getTerminator(), m_Br(m_Value(Cond), m_BasicBlock(TrueBB), in getReachableBlocks()
13991 Worklist.push_back(C->isOne() ? TrueBB : FalseBB); in getReachableBlocks()
13999 Worklist.push_back(TrueBB); in getReachableBlocks()