Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIfConversion.cpp147 MachineBasicBlock *TrueBB = nullptr; member
400 return BBI.IsBrAnalyzable && BBI.TrueBB == nullptr; in blockAlwaysFallThrough()
515 : BBI.TrueBB->getNumber()) in INITIALIZE_PASS_DEPENDENCY()
540 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
557 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
569 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
609 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
611 if (SuccBB != TrueBB) in findFalseBlock()
623 TII->insertBranch(*BBI.BB, BBI.FalseBB, BBI.TrueBB, BBI.BrCond, dl); in reverseBranchCondition()
624 std::swap(BBI.TrueBB, BBI.FalseBB); in reverseBranchCondition()
[all …]
H A DBranchFolding.cpp1799 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
1801 if (SuccBB != TrueBB) in findFalseBlock()
H A DCodeGenPrepare.cpp1875 BasicBlock *TrueBB, *FalseBB; in foldICmpWithDominatingICmp() local
1876 if (!match(DomBB->getTerminator(), m_Br(m_Value(DomCond), TrueBB, FalseBB))) in foldICmpWithDominatingICmp()
/freebsd/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/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/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp890 MachineBasicBlock *TrueBB = nullptr, *FalseBB = nullptr; in getBranch() local
895 TII->analyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs); in getBranch()
904 assert(((R != MipsInstrInfo::BT_Uncond) || (TrueBB == &Dst))); in getBranch()
909 assert((TrueBB == &Dst) || (FalseBB == &Dst)); in getBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineCFGStructurizer.cpp1854 MachineBasicBlock *TrueBB = nullptr; in rewriteCodeBBTerminator() local
1858 TII->analyzeBranch(*CodeBB, TrueBB, FalseBB, Cond); in rewriteCodeBBTerminator()
1862 if (FalseBB == nullptr && TrueBB == nullptr && FallthroughBB == nullptr) { in rewriteCodeBBTerminator()
1872 if (FalseBB == nullptr && TrueBB == nullptr) { in rewriteCodeBBTerminator()
1873 TrueBB = FallthroughBB; in rewriteCodeBBTerminator()
1874 } else if (TrueBB != nullptr) { in rewriteCodeBBTerminator()
1876 (FallthroughBB && (FallthroughBB != TrueBB)) ? FallthroughBB : FalseBB; in rewriteCodeBBTerminator()
1879 if ((TrueBB != nullptr && FalseBB == nullptr) || (TrueBB == FalseBB)) { in rewriteCodeBBTerminator()
1881 BBSelectReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
1887 TrueBBReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp2442 BasicBlock *TrueBB, *FalseBB; in detectShiftUntilBitTestIdiom() local
2445 m_BasicBlock(TrueBB), m_BasicBlock(FalseBB)))) { in detectShiftUntilBitTestIdiom()
2509 std::swap(TrueBB, FalseBB); in detectShiftUntilBitTestIdiom()
2514 if (TrueBB != LoopHeaderBB) { in detectShiftUntilBitTestIdiom()
2801 BasicBlock *TrueBB, *FalseBB; in detectShiftUntilZeroIdiom() local
2803 m_Br(m_Instruction(ValShiftedIsZero), m_BasicBlock(TrueBB), in detectShiftUntilZeroIdiom()
2862 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/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp284 BasicBlock *TrueBB; in recognizeByteCompare() local
288 m_BasicBlock(TrueBB), m_BasicBlock(FoundBB))) || in recognizeByteCompare()
289 WhilePred != ICmpInst::Predicate::ICMP_EQ || !CurLoop->contains(TrueBB)) in recognizeByteCompare()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprComplex.cpp972 llvm::BasicBlock *TrueBB = in EmitRangeReductionDiv() local
977 Builder.CreateCondBr(IsR, TrueBB, FalseBB); in EmitRangeReductionDiv()
979 CGF.EmitBlock(TrueBB); in EmitRangeReductionDiv()
1022 VALr->addIncoming(DSTTr, TrueBB); in EmitRangeReductionDiv()
1025 VALi->addIncoming(DSTTi, TrueBB); in EmitRangeReductionDiv()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp280 BasicBlock *TrueBB, BasicBlock *FalseBB,
4617 Value *Cond, BasicBlock *TrueBB, in SimplifyTerminatorOnSelect() argument
4626 BasicBlock *KeepEdge1 = TrueBB; in SimplifyTerminatorOnSelect()
4627 BasicBlock *KeepEdge2 = TrueBB != FalseBB ? FalseBB : nullptr; in SimplifyTerminatorOnSelect()
4642 if (Succ != TrueBB && Succ != FalseBB) in SimplifyTerminatorOnSelect()
4652 if (TrueBB == FalseBB) { in SimplifyTerminatorOnSelect()
4655 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
4659 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in SimplifyTerminatorOnSelect()
4663 } else if (KeepEdge1 && (KeepEdge2 || TrueBB == FalseBB)) { in SimplifyTerminatorOnSelect()
4673 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp567 Cases[0].TrueBB == Cases[1].ThisBB) in shouldEmitAsBranches()
908 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
909 addMachineCFGPred({SwitchBB->getBasicBlock(), CB.TrueBB->getBasicBlock()}, in emitSwitchCase()
912 if (CB.TrueBB != CB.ThisBB->getNextNode()) in emitSwitchCase()
913 MIB.buildBr(*CB.TrueBB); in emitSwitchCase()
958 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
960 addMachineCFGPred({SwitchBB->getBasicBlock(), CB.TrueBB->getBasicBlock()}, in emitSwitchCase()
965 if (CB.TrueBB != CB.FalseBB) in emitSwitchCase()
972 MIB.buildBrCond(Cond, *CB.TrueBB); in emitSwitchCase()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp4378 MachineBasicBlock *TrueBB = F->CreateMachineBasicBlock(LLVM_BB); in emitVecCondBranchPseudo() local
4382 F->insert(It, TrueBB); in emitVecCondBranchPseudo()
4394 BuildMI(BB, DL, TII->get(LoongArch::BCNEZ)).addReg(FCC).addMBB(TrueBB); in emitVecCondBranchPseudo()
4396 BB->addSuccessor(TrueBB); in emitVecCondBranchPseudo()
4408 BuildMI(TrueBB, DL, TII->get(LoongArch::ADDI_W), RD2) in emitVecCondBranchPseudo()
4411 TrueBB->addSuccessor(SinkBB); in emitVecCondBranchPseudo()
4419 .addMBB(TrueBB); in emitVecCondBranchPseudo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp3403 BasicBlock *TrueBB, *FalseBB; in tryToMoveFreeBeforeNullTest() local
3409 TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest()
3415 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest()
3417 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) && in tryToMoveFreeBeforeNullTest()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2771 if (Cases[0].CC == ISD::SETEQ && Cases[0].TrueBB == Cases[1].ThisBB) in ShouldEmitAsBranches()
2893 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2895 if (CB.TrueBB != NextBlock(SwitchBB)) { in visitSwitchCase()
2897 DAG.getBasicBlock(CB.TrueBB))); in visitSwitchCase()
2949 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2952 if (CB.TrueBB != CB.FalseBB) in visitSwitchCase()
2958 if (CB.TrueBB == NextBlock(SwitchBB)) { in visitSwitchCase()
2959 std::swap(CB.TrueBB, CB.FalseBB); in visitSwitchCase()
2966 DAG.getBasicBlock(CB.TrueBB)); in visitSwitchCase()
H A DSelectionDAGISel.cpp2105 Succs.push_back(SDB->SL->SwitchCases[i].TrueBB); in FinishBasicBlock()
2106 if (SDB->SL->SwitchCases[i].TrueBB != SDB->SL->SwitchCases[i].FalseBB) in FinishBasicBlock()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp9280 BasicBlock *TrueBB, *FalseBB; in getDomPredecessorCondition() local
9281 if (!match(PredBB->getTerminator(), m_Br(m_Value(PredCond), TrueBB, FalseBB))) in getDomPredecessorCondition()
9285 if (TrueBB == FalseBB) in getDomPredecessorCondition()
9288 assert((TrueBB == ContextBB || FalseBB == ContextBB) && in getDomPredecessorCondition()
9292 return {PredCond, TrueBB == ContextBB}; in getDomPredecessorCondition()
H A DScalarEvolution.cpp14149 BasicBlock *TrueBB, *FalseBB; in getReachableBlocks() local
14150 if (match(BB->getTerminator(), m_Br(m_Value(Cond), m_BasicBlock(TrueBB), in getReachableBlocks()
14153 Worklist.push_back(C->isOne() ? TrueBB : FalseBB); in getReachableBlocks()
14161 Worklist.push_back(TrueBB); in getReachableBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp2889 MachineBasicBlock *TrueBB = MF->CreateMachineBasicBlock(LLVM_BB); in EmitF128CSEL() local
2891 MF->insert(It, TrueBB); in EmitF128CSEL()
2899 BuildMI(MBB, DL, TII->get(AArch64::Bcc)).addImm(CondCode).addMBB(TrueBB); in EmitF128CSEL()
2901 MBB->addSuccessor(TrueBB); in EmitF128CSEL()
2905 TrueBB->addSuccessor(EndBB); in EmitF128CSEL()
2908 TrueBB->addLiveIn(AArch64::NZCV); in EmitF128CSEL()
2914 .addMBB(TrueBB) in EmitF128CSEL()