Home
last modified time | relevance | path

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

/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DIfConversion.cpp151 MachineBasicBlock *TrueBB = nullptr; member
616 if (SuccBB != TrueBB) in findFalseBlock()
629 std::swap(BBI.TrueBB, BBI.FalseBB); in reverseBranchCondition()
900 MachineBasicBlock *TT = TrueBBI.TrueBB; in ValidForkedDiamond()
902 MachineBasicBlock *FT = FalseBBI.TrueBB; in ValidForkedDiamond()
975 MachineBasicBlock *TT = TrueBBI.TrueBB; in ValidDiamond()
976 MachineBasicBlock *FT = FalseBBI.TrueBB; in ValidDiamond()
1028 BBI.TrueBB = BBI.FalseBB = nullptr; in AnalyzeBranches()
1033 BBI.TrueBB = nullptr; in AnalyzeBranches()
1271 BBStack.push_back(*BBI.TrueBB); in AnalyzeBlock()
[all …]
H A DBranchFolding.cpp1777 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
1779 if (SuccBB != TrueBB) in findFalseBlock()
H A DCodeGenPrepare.cpp1682 BasicBlock *TrueBB, *FalseBB; in foldICmpWithDominatingICmp() local
1683 if (!match(DomBB->getTerminator(), m_Br(m_Value(DomCond), TrueBB, FalseBB))) in foldICmpWithDominatingICmp()
/netbsd/external/apache2/llvm/dist/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),
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp892 MachineBasicBlock *TrueBB = nullptr, *FalseBB = nullptr; in getBranch() local
897 TII->analyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs); in getBranch()
906 assert(((R != MipsInstrInfo::BT_Uncond) || (TrueBB == &Dst))); in getBranch()
911 assert((TrueBB == &Dst) || (FalseBB == &Dst)); in getBranch()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineCFGStructurizer.cpp1883 MachineBasicBlock *TrueBB = nullptr; in rewriteCodeBBTerminator() local
1887 TII->analyzeBranch(*CodeBB, TrueBB, FalseBB, Cond); in rewriteCodeBBTerminator()
1891 if (FalseBB == nullptr && TrueBB == nullptr && FallthroughBB == nullptr) { in rewriteCodeBBTerminator()
1901 if (FalseBB == nullptr && TrueBB == nullptr) { in rewriteCodeBBTerminator()
1902 TrueBB = FallthroughBB; in rewriteCodeBBTerminator()
1903 } else if (TrueBB != nullptr) { in rewriteCodeBBTerminator()
1905 (FallthroughBB && (FallthroughBB != TrueBB)) ? FallthroughBB : FalseBB; in rewriteCodeBBTerminator()
1908 if ((TrueBB != nullptr && FalseBB == nullptr) || (TrueBB == FalseBB)) { in rewriteCodeBBTerminator()
1910 BBSelectReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
1916 TrueBBReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp2119 BasicBlock *TrueBB, *FalseBB; in detectShiftUntilBitTestIdiom() local
2122 m_BasicBlock(TrueBB), m_BasicBlock(FalseBB)))) { in detectShiftUntilBitTestIdiom()
2183 std::swap(TrueBB, FalseBB); in detectShiftUntilBitTestIdiom()
2188 if (TrueBB != LoopHeaderBB) { in detectShiftUntilBitTestIdiom()
2456 BasicBlock *TrueBB, *FalseBB; in detectShiftUntilZeroIdiom() local
2458 m_Br(m_Instruction(ValShiftedIsZero), m_BasicBlock(TrueBB), in detectShiftUntilZeroIdiom()
2514 std::swap(TrueBB, FalseBB); in detectShiftUntilZeroIdiom()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp548 Cases[0].TrueBB == Cases[1].ThisBB) in shouldEmitAsBranches()
816 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
817 addMachineCFGPred({SwitchBB->getBasicBlock(), CB.TrueBB->getBasicBlock()}, in emitSwitchCase()
820 if (CB.TrueBB != CB.ThisBB->getNextNode()) in emitSwitchCase()
821 MIB.buildBr(*CB.TrueBB); in emitSwitchCase()
866 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
868 addMachineCFGPred({SwitchBB->getBasicBlock(), CB.TrueBB->getBasicBlock()}, in emitSwitchCase()
873 if (CB.TrueBB != CB.FalseBB) in emitSwitchCase()
880 MIB.buildBrCond(Cond, *CB.TrueBB); in emitSwitchCase()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp262 BasicBlock *TrueBB, BasicBlock *FalseBB,
3936 BasicBlock *KeepEdge1 = TrueBB; in SimplifyTerminatorOnSelect()
3937 BasicBlock *KeepEdge2 = TrueBB != FalseBB ? FalseBB : nullptr; in SimplifyTerminatorOnSelect()
3952 if (Succ != TrueBB && Succ != FalseBB) in SimplifyTerminatorOnSelect()
3962 if (TrueBB == FalseBB) { in SimplifyTerminatorOnSelect()
3965 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
3969 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in SimplifyTerminatorOnSelect()
3973 } else if (KeepEdge1 && (KeepEdge2 || TrueBB == FalseBB)) { in SimplifyTerminatorOnSelect()
3983 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
4017 BasicBlock *TrueBB = SI->findCaseValue(TrueVal)->getCaseSuccessor(); in SimplifySwitchOnSelect() local
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2756 BasicBlock *TrueBB, *FalseBB; in tryToMoveFreeBeforeNullTest() local
2762 TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest()
2768 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest()
2770 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) && in tryToMoveFreeBeforeNullTest()
H A DInstCombineCompares.cpp1452 BasicBlock *TrueBB, *FalseBB; in foldICmpWithDominatingICmp() local
1453 if (!match(DomBB->getTerminator(), m_Br(m_Value(DomCond), TrueBB, FalseBB))) in foldICmpWithDominatingICmp()
1456 assert((TrueBB == CmpBB || FalseBB == CmpBB) && in foldICmpWithDominatingICmp()
1460 if (TrueBB == FalseBB) in foldICmpWithDominatingICmp()
1464 Optional<bool> Imp = isImpliedCondition(DomCond, &Cmp, DL, TrueBB == CmpBB); in foldICmpWithDominatingICmp()
1483 (CmpBB == TrueBB) ? ConstantRange::makeExactICmpRegion(DomPred, *DomC) in foldICmpWithDominatingICmp()
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DValueTracking.cpp6585 BasicBlock *TrueBB, *FalseBB; in getDomPredecessorCondition() local
6586 if (!match(PredBB->getTerminator(), m_Br(m_Value(PredCond), TrueBB, FalseBB))) in getDomPredecessorCondition()
6590 if (TrueBB == FalseBB) in getDomPredecessorCondition()
6593 assert((TrueBB == ContextBB || FalseBB == ContextBB) && in getDomPredecessorCondition()
6597 return {PredCond, TrueBB == ContextBB}; in getDomPredecessorCondition()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2329 if (Cases[0].CC == ISD::SETEQ && Cases[0].TrueBB == Cases[1].ThisBB) in ShouldEmitAsBranches()
2443 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2445 if (CB.TrueBB != NextBlock(SwitchBB)) { in visitSwitchCase()
2447 DAG.getBasicBlock(CB.TrueBB))); in visitSwitchCase()
2499 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2502 if (CB.TrueBB != CB.FalseBB) in visitSwitchCase()
2508 if (CB.TrueBB == NextBlock(SwitchBB)) { in visitSwitchCase()
2509 std::swap(CB.TrueBB, CB.FalseBB); in visitSwitchCase()
2516 DAG.getBasicBlock(CB.TrueBB)); in visitSwitchCase()
H A DSelectionDAGISel.cpp1961 Succs.push_back(SDB->SL->SwitchCases[i].TrueBB); in FinishBasicBlock()
1962 if (SDB->SL->SwitchCases[i].TrueBB != SDB->SL->SwitchCases[i].FalseBB) in FinishBasicBlock()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp2132 MachineBasicBlock *TrueBB = MF->CreateMachineBasicBlock(LLVM_BB); in EmitF128CSEL() local
2134 MF->insert(It, TrueBB); in EmitF128CSEL()
2142 BuildMI(MBB, DL, TII->get(AArch64::Bcc)).addImm(CondCode).addMBB(TrueBB); in EmitF128CSEL()
2144 MBB->addSuccessor(TrueBB); in EmitF128CSEL()
2148 TrueBB->addSuccessor(EndBB); in EmitF128CSEL()
2151 TrueBB->addLiveIn(AArch64::NZCV); in EmitF128CSEL()
2157 .addMBB(TrueBB) in EmitF128CSEL()