Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DSSAUpdaterBulk.cpp49 BasicBlock *TrueBB = BasicBlock::Create(C, "true", F); in TEST() local
54 B.CreateCondBr(B.getTrue(), TrueBB, FalseBB); in TEST()
56 B.SetInsertPoint(TrueBB); in TEST()
77 Updater.AddAvailableValue(VarNum, TrueBB, AddOp1); in TEST()
83 Updater.AddAvailableValue(VarNum, TrueBB, SubOp1); in TEST()
94 EXPECT_EQ(UpdatePhiA->getIncomingValueForBlock(TrueBB), AddOp1); in TEST()
100 EXPECT_EQ(UpdatePhiB->getIncomingValueForBlock(TrueBB), SubOp1); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DIfConversion.cpp148 MachineBasicBlock *TrueBB = nullptr; member
301 return BBI.IsBrAnalyzable && BBI.TrueBB == nullptr; in blockAlwaysFallThrough()
413 : BBI.TrueBB->getNumber()) in INITIALIZE_PASS_DEPENDENCY()
439 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
457 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
469 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY()
510 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
512 if (SuccBB != TrueBB) in findFalseBlock()
524 TII->insertBranch(*BBI.BB, BBI.FalseBB, BBI.TrueBB, BBI.BrCond, dl); in reverseBranchCondition()
525 std::swap(BBI.TrueBB, BBI.FalseBB); in reverseBranchCondition()
[all …]
DBranchFolding.cpp1862 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
1864 if (SuccBB != TrueBB) in findFalseBlock()
/external/llvm/lib/CodeGen/
DIfConversion.cpp125 MachineBasicBlock *TrueBB; member
133 ExtraCost(0), ExtraCost2(0), BB(nullptr), TrueBB(nullptr), in BBInfo()
247 return BBI.IsBrAnalyzable && BBI.TrueBB == nullptr; in blockAlwaysFallThrough()
360 : BBI.TrueBB->getNumber()) << ") "); in INITIALIZE_PASS_DEPENDENCY()
385 << BBI.TrueBB->getNumber() << ",F:" in INITIALIZE_PASS_DEPENDENCY()
403 << BBI.TrueBB->getNumber() << ",F:" in INITIALIZE_PASS_DEPENDENCY()
441 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
445 if (SuccBB != TrueBB) in findFalseBlock()
457 TII->InsertBranch(*BBI.BB, BBI.FalseBB, BBI.TrueBB, BBI.BrCond, dl); in ReverseBranchCondition()
458 std::swap(BBI.TrueBB, BBI.FalseBB); in ReverseBranchCondition()
[all …]
DBranchFolding.cpp1638 MachineBasicBlock *TrueBB) { in findFalseBlock() argument
1640 if (SuccBB != TrueBB) in findFalseBlock()
/external/llvm/lib/Target/Mips/
DMipsDelaySlotFiller.cpp813 MachineBasicBlock *TrueBB = nullptr, *FalseBB = nullptr; in getBranch() local
818 TII->analyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs); in getBranch()
827 assert(((R != MipsInstrInfo::BT_Uncond) || (TrueBB == &Dst))); in getBranch()
832 assert((TrueBB == &Dst) || (FalseBB == &Dst)); in getBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsDelaySlotFiller.cpp855 MachineBasicBlock *TrueBB = nullptr, *FalseBB = nullptr; in getBranch() local
860 TII->analyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs); in getBranch()
869 assert(((R != MipsInstrInfo::BT_Uncond) || (TrueBB == &Dst))); in getBranch()
874 assert((TrueBB == &Dst) || (FalseBB == &Dst)); in getBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUMachineCFGStructurizer.cpp1903 MachineBasicBlock *TrueBB = nullptr; in rewriteCodeBBTerminator() local
1907 TII->analyzeBranch(*CodeBB, TrueBB, FalseBB, Cond); in rewriteCodeBBTerminator()
1911 if (FalseBB == nullptr && TrueBB == nullptr && FallthroughBB == nullptr) { in rewriteCodeBBTerminator()
1921 if (FalseBB == nullptr && TrueBB == nullptr) { in rewriteCodeBBTerminator()
1922 TrueBB = FallthroughBB; in rewriteCodeBBTerminator()
1923 } else if (TrueBB != nullptr) { in rewriteCodeBBTerminator()
1925 (FallthroughBB && (FallthroughBB != TrueBB)) ? FallthroughBB : FalseBB; in rewriteCodeBBTerminator()
1928 if ((TrueBB != nullptr && FalseBB == nullptr) || (TrueBB == FalseBB)) { in rewriteCodeBBTerminator()
1930 BBSelectReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
1936 TrueBBReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp343 MachineBasicBlock &TrueBB = getMBB(TrueTgt); in translateBr() local
344 MIRBuilder.buildBrCond(Tst, TrueBB); in translateBr()
380 const BasicBlock *TrueBB = CaseIt.getCaseSuccessor(); in translateSwitch() local
381 MachineBasicBlock &TrueMBB = getMBB(*TrueBB); in translateSwitch()
385 addMachineCFGPred({OrigBB, TrueBB}, &CurMBB); in translateSwitch()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp3008 BasicBlock *TrueBB, BasicBlock *FalseBB, in SimplifyTerminatorOnSelect() argument
3015 BasicBlock *KeepEdge1 = TrueBB; in SimplifyTerminatorOnSelect()
3016 BasicBlock *KeepEdge2 = TrueBB != FalseBB ? FalseBB : nullptr; in SimplifyTerminatorOnSelect()
3035 if (TrueBB == FalseBB) in SimplifyTerminatorOnSelect()
3038 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
3042 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in SimplifyTerminatorOnSelect()
3048 } else if (KeepEdge1 && (KeepEdge2 || TrueBB == FalseBB)) { in SimplifyTerminatorOnSelect()
3058 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
3081 BasicBlock *TrueBB = SI->findCaseValue(TrueVal).getCaseSuccessor(); in SimplifySwitchOnSelect() local
3099 return SimplifyTerminatorOnSelect(SI, Condition, TrueBB, FalseBB, TrueWeight, in SimplifySwitchOnSelect()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp3406 BasicBlock *TrueBB, BasicBlock *FalseBB, in SimplifyTerminatorOnSelect() argument
3413 BasicBlock *KeepEdge1 = TrueBB; in SimplifyTerminatorOnSelect()
3414 BasicBlock *KeepEdge2 = TrueBB != FalseBB ? FalseBB : nullptr; in SimplifyTerminatorOnSelect()
3433 if (TrueBB == FalseBB) in SimplifyTerminatorOnSelect()
3436 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
3440 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in SimplifyTerminatorOnSelect()
3444 } else if (KeepEdge1 && (KeepEdge2 || TrueBB == FalseBB)) { in SimplifyTerminatorOnSelect()
3454 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect()
3477 BasicBlock *TrueBB = SI->findCaseValue(TrueVal)->getCaseSuccessor(); in SimplifySwitchOnSelect() local
3495 return SimplifyTerminatorOnSelect(SI, Condition, TrueBB, FalseBB, TrueWeight, in SimplifySwitchOnSelect()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h225 TrueBB(truebb), FalseBB(falsebb), ThisBB(me), TrueProb(trueprob), in CC()
237 MachineBasicBlock *TrueBB, *FalseBB; member
DSelectionDAGISel.cpp1793 Succs.push_back(SDB->SwitchCases[i].TrueBB); in FinishBasicBlock()
1794 if (SDB->SwitchCases[i].TrueBB != SDB->SwitchCases[i].FalseBB) in FinishBasicBlock()
DSelectionDAGBuilder.cpp1775 if (Cases[0].CC == ISD::SETEQ && Cases[0].TrueBB == Cases[1].ThisBB) in ShouldEmitAsBranches()
1912 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
1915 if (CB.TrueBB != CB.FalseBB) in visitSwitchCase()
1921 if (CB.TrueBB == NextBlock(SwitchBB)) { in visitSwitchCase()
1922 std::swap(CB.TrueBB, CB.FalseBB); in visitSwitchCase()
1929 DAG.getBasicBlock(CB.TrueBB)); in visitSwitchCase()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h238 MachineBasicBlock *TrueBB, *FalseBB; member
257 TrueBB(truebb), FalseBB(falsebb), ThisBB(me), DL(dl), in CC()
DSelectionDAGISel.cpp2057 Succs.push_back(SDB->SwitchCases[i].TrueBB); in FinishBasicBlock()
2058 if (SDB->SwitchCases[i].TrueBB != SDB->SwitchCases[i].FalseBB) in FinishBasicBlock()
DSelectionDAGBuilder.cpp1956 if (Cases[0].CC == ISD::SETEQ && Cases[0].TrueBB == Cases[1].ThisBB) in ShouldEmitAsBranches()
2093 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2096 if (CB.TrueBB != CB.FalseBB) in visitSwitchCase()
2102 if (CB.TrueBB == NextBlock(SwitchBB)) { in visitSwitchCase()
2103 std::swap(CB.TrueBB, CB.FalseBB); in visitSwitchCase()
2110 DAG.getBasicBlock(CB.TrueBB)); in visitSwitchCase()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Scalar/
DLoopPassManagerTest.cpp905 auto CreateCondBr = [&](BasicBlock *TrueBB, BasicBlock *FalseBB, in TEST_F()
908 BranchInst::Create(TrueBB, FalseBB, Cond, BB); in TEST_F()
1107 auto CreateCondBr = [&](BasicBlock *TrueBB, BasicBlock *FalseBB, in TEST_F()
1110 BranchInst::Create(TrueBB, FalseBB, Cond, BB); in TEST_F()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2046 BasicBlock *TrueBB, *FalseBB; in tryToMoveFreeBeforeNullTest() local
2048 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Op), m_Zero()), TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest()
2054 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest()
2056 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) && in tryToMoveFreeBeforeNullTest()
DInstCombineCompares.cpp3336 BasicBlock *TrueBB, *FalseBB; in visitICmpInst() local
3339 TrueBB, FalseBB)) && in visitICmpInst()
3340 TrueBB != FalseBB) { in visitICmpInst()
3344 (Parent == TrueBB) in visitICmpInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2249 BasicBlock *TrueBB, *FalseBB; in tryToMoveFreeBeforeNullTest() local
2251 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Op), m_Zero()), TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest()
2257 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest()
2259 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) && in tryToMoveFreeBeforeNullTest()
DInstCombineCompares.cpp1377 BasicBlock *TrueBB, *FalseBB; in foldICmpWithConstant() local
1380 TrueBB, FalseBB)) && in foldICmpWithConstant()
1381 TrueBB != FalseBB) { in foldICmpWithConstant()
1385 (Parent == TrueBB) in foldICmpWithConstant()
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp1902 BasicBlock *TrueBB, *FalseBB; in findExistingExpansion() local
1906 TrueBB, FalseBB))) in findExistingExpansion()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp2017 BasicBlock *TrueBB, *FalseBB; in getRelatedExistingExpansion() local
2021 TrueBB, FalseBB))) in getRelatedExistingExpansion()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp989 MachineBasicBlock *TrueBB = MF->CreateMachineBasicBlock(LLVM_BB); in EmitF128CSEL() local
991 MF->insert(It, TrueBB); in EmitF128CSEL()
999 BuildMI(MBB, DL, TII->get(AArch64::Bcc)).addImm(CondCode).addMBB(TrueBB); in EmitF128CSEL()
1001 MBB->addSuccessor(TrueBB); in EmitF128CSEL()
1005 TrueBB->addSuccessor(EndBB); in EmitF128CSEL()
1008 TrueBB->addLiveIn(AArch64::NZCV); in EmitF128CSEL()
1014 .addMBB(TrueBB) in EmitF128CSEL()

12