Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIfConversion.cpp153 MachineBasicBlock *TrueBB = nullptr; member
404 return BBI.IsBrAnalyzable && BBI.TrueBB == nullptr; in blockAlwaysFallThrough()
534 : BBI.TrueBB->getNumber()) in INITIALIZE_PASS_DEPENDENCY()
559 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
576 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
588 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
628 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
630 if (SuccBB != TrueBB) in findFalseBlock()
642 TII->insertBranch(*BBI.BB, BBI.FalseBB, BBI.TrueBB, BBI.BrCond, dl); in reverseBranchCondition()
643 std::swap(BBI.TrueBB, BBI.FalseBB); in reverseBranchCondition()
[all …]
H A DBranchFolding.cpp1821 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
1823 if (SuccBB != TrueBB) in findFalseBlock()
H A DCodeGenPrepare.cpp1946 BasicBlock *TrueBB, *FalseBB; in foldICmpWithDominatingICmp() local
1947 if (!match(DomBB->getTerminator(), m_Br(m_Value(DomCond), TrueBB, FalseBB))) in foldICmpWithDominatingICmp()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVExpandPseudoInsts.cpp186 MachineBasicBlock *TrueBB = MF->CreateMachineBasicBlock(MBB.getBasicBlock()); in expandCCOp() local
189 MF->insert(++MBB.getIterator(), TrueBB); in expandCCOp()
190 MF->insert(++TrueBB->getIterator(), MergeBB); in expandCCOp()
210 BuildMI(TrueBB, DL, TII->get(RISCV::ADDI), DestReg) in expandCCOp()
250 BuildMI(TrueBB, DL, TII->get(NewOpc), DestReg) in expandCCOp()
255 BuildMI(TrueBB, DL, TII->get(NewOpc), DestReg) in expandCCOp()
261 TrueBB->addSuccessor(MergeBB); in expandCCOp()
266 MBB.addSuccessor(TrueBB); in expandCCOp()
274 computeAndAddLiveIns(LiveRegs, *TrueBB); in expandCCOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h130 MachineBasicBlock *TrueBB, *FalseBB; member
152 TrueBB(truebb), FalseBB(falsebb), ThisBB(me), DL(dl), in CC()
165 CmpRHS(cmprhs), TrueBB(truebb), FalseBB(falsebb), ThisBB(me),
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp894 MachineBasicBlock *TrueBB = nullptr, *FalseBB = nullptr; in getBranch() local
899 TII->analyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs); in getBranch()
908 assert(((R != MipsInstrInfo::BT_Uncond) || (TrueBB == &Dst))); in getBranch()
913 assert((TrueBB == &Dst) || (FalseBB == &Dst)); in getBranch()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp2747 BasicBlock *TrueBB, *FalseBB; in detectShiftUntilBitTestIdiom() local
2750 m_BasicBlock(TrueBB), m_BasicBlock(FalseBB)))) { in detectShiftUntilBitTestIdiom()
2815 std::swap(TrueBB, FalseBB); in detectShiftUntilBitTestIdiom()
2820 if (TrueBB != LoopHeaderBB) { in detectShiftUntilBitTestIdiom()
3107 BasicBlock *TrueBB, *FalseBB; in detectShiftUntilZeroIdiom() local
3109 m_Br(m_Instruction(ValShiftedIsZero), m_BasicBlock(TrueBB), in detectShiftUntilZeroIdiom()
3168 std::swap(TrueBB, FalseBB); in detectShiftUntilZeroIdiom()
H A DDeadStoreElimination.cpp2058 BasicBlock *TrueBB, *FalseBB; in tryFoldIntoCalloc() local
2061 TrueBB, FalseBB))) in tryFoldIntoCalloc()
/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/CodeGen/GlobalISel/
H A DIRTranslator.cpp581 Cases[0].TrueBB == Cases[1].ThisBB) in shouldEmitAsBranches()
922 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
923 addMachineCFGPred({SwitchBB->getBasicBlock(), CB.TrueBB->getBasicBlock()}, in emitSwitchCase()
926 if (CB.TrueBB != CB.ThisBB->getNextNode()) in emitSwitchCase()
927 MIB.buildBr(*CB.TrueBB); in emitSwitchCase()
972 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
974 addMachineCFGPred({SwitchBB->getBasicBlock(), CB.TrueBB->getBasicBlock()}, in emitSwitchCase()
979 if (CB.TrueBB != CB.FalseBB) in emitSwitchCase()
986 MIB.buildBrCond(Cond, *CB.TrueBB); in emitSwitchCase()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp299 BasicBlock *TrueBB, BasicBlock *FalseBB,
4767 Value *Cond, BasicBlock *TrueBB, in simplifyTerminatorOnSelect() argument
4776 BasicBlock *KeepEdge1 = TrueBB; in simplifyTerminatorOnSelect()
4777 BasicBlock *KeepEdge2 = TrueBB != FalseBB ? FalseBB : nullptr; in simplifyTerminatorOnSelect()
4792 if (Succ != TrueBB && Succ != FalseBB) in simplifyTerminatorOnSelect()
4802 if (TrueBB == FalseBB) { in simplifyTerminatorOnSelect()
4805 Builder.CreateBr(TrueBB); in simplifyTerminatorOnSelect()
4809 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in simplifyTerminatorOnSelect()
4813 } else if (KeepEdge1 && (KeepEdge2 || TrueBB == FalseBB)) { in simplifyTerminatorOnSelect()
4823 Builder.CreateBr(TrueBB); in simplifyTerminatorOnSelect()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp332 BasicBlock *TrueBB; in recognizeByteCompare() local
337 m_BasicBlock(TrueBB), m_BasicBlock(FoundBB))) || in recognizeByteCompare()
338 !CurLoop->contains(TrueBB)) in recognizeByteCompare()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp3764 BasicBlock *TrueBB, *FalseBB; in tryToMoveFreeBeforeNullTest() local
3770 TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest()
3776 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest()
3778 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) && in tryToMoveFreeBeforeNullTest()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp5957 MachineBasicBlock *TrueBB = F->CreateMachineBasicBlock(LLVM_BB); in emitVecCondBranchPseudo() local
5961 F->insert(It, TrueBB); in emitVecCondBranchPseudo()
5973 BuildMI(BB, DL, TII->get(LoongArch::BCNEZ)).addReg(FCC).addMBB(TrueBB); in emitVecCondBranchPseudo()
5975 BB->addSuccessor(TrueBB); in emitVecCondBranchPseudo()
5987 BuildMI(TrueBB, DL, TII->get(LoongArch::ADDI_W), RD2) in emitVecCondBranchPseudo()
5990 TrueBB->addSuccessor(SinkBB); in emitVecCondBranchPseudo()
5998 .addMBB(TrueBB); in emitVecCondBranchPseudo()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2737 if (Cases[0].CC == ISD::SETEQ && Cases[0].TrueBB == Cases[1].ThisBB) in ShouldEmitAsBranches()
2862 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2864 if (CB.TrueBB != NextBlock(SwitchBB)) { in visitSwitchCase()
2866 DAG.getBasicBlock(CB.TrueBB))); in visitSwitchCase()
2918 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2921 if (CB.TrueBB != CB.FalseBB) in visitSwitchCase()
2927 if (CB.TrueBB == NextBlock(SwitchBB)) { in visitSwitchCase()
2928 std::swap(CB.TrueBB, CB.FalseBB); in visitSwitchCase()
2936 Cond, DAG.getBasicBlock(CB.TrueBB), Flags); in visitSwitchCase()
H A DSelectionDAGISel.cpp2127 Succs.push_back(SDB->SL->SwitchCases[i].TrueBB); in FinishBasicBlock()
2128 if (SDB->SL->SwitchCases[i].TrueBB != SDB->SL->SwitchCases[i].FalseBB) in FinishBasicBlock()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp9551 BasicBlock *TrueBB, *FalseBB; in getDomPredecessorCondition() local
9552 if (!match(PredBB->getTerminator(), m_Br(m_Value(PredCond), TrueBB, FalseBB))) in getDomPredecessorCondition()
9556 if (TrueBB == FalseBB) in getDomPredecessorCondition()
9559 assert((TrueBB == ContextBB || FalseBB == ContextBB) && in getDomPredecessorCondition()
9563 return {PredCond, TrueBB == ContextBB}; in getDomPredecessorCondition()
H A DScalarEvolution.cpp14341 BasicBlock *TrueBB, *FalseBB; in getReachableBlocks() local
14342 if (match(BB->getTerminator(), m_Br(m_Value(Cond), m_BasicBlock(TrueBB), in getReachableBlocks()
14345 Worklist.push_back(C->isOne() ? TrueBB : FalseBB); in getReachableBlocks()
14353 Worklist.push_back(TrueBB); in getReachableBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp2802 MachineBasicBlock *TrueBB = MF->CreateMachineBasicBlock(LLVM_BB); in EmitF128CSEL() local
2804 MF->insert(It, TrueBB); in EmitF128CSEL()
2812 BuildMI(MBB, DL, TII->get(AArch64::Bcc)).addImm(CondCode).addMBB(TrueBB); in EmitF128CSEL()
2814 MBB->addSuccessor(TrueBB); in EmitF128CSEL()
2818 TrueBB->addSuccessor(EndBB); in EmitF128CSEL()
2821 TrueBB->addLiveIn(AArch64::NZCV); in EmitF128CSEL()
2827 .addMBB(TrueBB) in EmitF128CSEL()