| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | LexicalScopesTest.cpp | 94 MBB1->addSuccessor(MBB2); in LexicalScopesTest() 131 BuildMI(*MBB1, MBB1->end(), OutermostLoc, BeanInst); in TEST_F() 178 BuildMI(*MBB1, MBB1->end(), InBlockLoc, BeanInst); in TEST_F() 213 BuildMI(*MBB1, MBB1->end(), InlinedLoc, BeanInst); in TEST_F() 248 BuildMI(*MBB1, MBB1->end(), OutermostLoc, BeanInst); in TEST_F() 269 MachineInstr *FirstI = BuildMI(*MBB1, MBB1->end(), InBlockLoc, BeanInst); in TEST_F() 300 MachineInstr *FirstI = BuildMI(*MBB1, MBB1->end(), InBlockLoc, BeanInst); in TEST_F() 340 BuildMI(*MBB1, MBB1->end(), InBlockLoc, BeanInst); in TEST_F() 382 BuildMI(*MBB1, MBB1->end(), InBlockLoc, BeanInst); in TEST_F() 435 BuildMI(*MBB1, MBB1->end(), OutermostLoc, BeanInst); in TEST_F() [all …]
|
| H A D | RegAllocScoreTest.cpp | 137 auto *MBB1 = MF->CreateMachineBasicBlock(); in TEST() local 139 MF->insert(MF->end(), MBB1); in TEST() 144 if (&MBB == MBB1) in TEST() 150 auto Next = MBB1->end(); in TEST() 151 Next = MBB1->insertAfter(Next, createMockCopy(*MF)); in TEST() 152 Next = MBB1->insertAfter(Next, createMockLoad(*MF)); in TEST() 153 Next = MBB1->insertAfter(Next, createMockLoad(*MF)); in TEST() 154 Next = MBB1->insertAfter(Next, createMockStore(*MF)); in TEST() 156 MBB1->insertAfter(Next, CheapRemat); in TEST()
|
| H A D | InstrRefLDVTest.cpp | 260 MBB0->addSuccessor(MBB1); in setupDiamondBlocks() 262 MBB1->addSuccessor(MBB3); in setupDiamondBlocks() 291 MBB0->addSuccessor(MBB1); in setupSimpleLoop() 292 MBB1->addSuccessor(MBB2); in setupSimpleLoop() 293 MBB1->addSuccessor(MBB1); in setupSimpleLoop() 333 MBB0->addSuccessor(MBB1); in setupNestedLoops() 334 MBB1->addSuccessor(MBB2); in setupNestedLoops() 427 MBB1->addSuccessor(MBB1); in setupBadlyNestedLoops() 2174 AllBlocks.insert(MBB1); in TEST_F() 2330 AllBlocks.insert(MBB1); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | BranchFolding.cpp | 329 MachineBasicBlock::iterator MBBI1 = MBB1->end(); in ComputeCommonTailLength() 555 auto EHScope1 = EHScopeMembership.find(MBB1); in ProfitableToMerge() 573 if (skipDebugInstructionsForward(MBB1->begin(), MBB1->end(), false) == I1) in ProfitableToMerge() 574 I1 = MBB1->begin(); in ProfitableToMerge() 578 bool FullBlockTail1 = I1 == MBB1->begin(); in ProfitableToMerge() 586 if ((MBB1 == PredBB || MBB2 == PredBB) && in ProfitableToMerge() 589 unsigned NumTerms = CountTerminators(MBB1 == PredBB ? MBB2 : MBB1, I); in ProfitableToMerge() 636 !MBB1->back().isBarrier() && in ProfitableToMerge() 648 MachineFunction *MF = MBB1->getParent(); in ProfitableToMerge() 1253 if (MBB1->isSuccessor(MBB2)) return true; in IsBetterFallthrough() [all …]
|
| H A D | MachineCSE.cpp | 150 MachineBasicBlock *MBB1); 820 auto MBB1 = PREMap[&MI]; in ProcessBlockPRE() local 822 !DT->properlyDominates(MBB, MBB1) && in ProcessBlockPRE() 824 auto CMBB = DT->findNearestCommonDominator(MBB, MBB1); in ProcessBlockPRE() 828 if (!isProfitableToHoistInto(CMBB, MBB, MBB1)) in ProcessBlockPRE() 833 if (CMBB != MBB1) { in ProcessBlockPRE() 834 auto BB = MBB->getBasicBlock(), BB1 = MBB1->getBasicBlock(); in ProcessBlockPRE() 899 MachineBasicBlock *MBB1) { in isProfitableToHoistInto() argument 903 assert(DT->dominates(CandidateBB, MBB1) && in isProfitableToHoistInto() 906 MBFI->getBlockFreq(MBB) + MBFI->getBlockFreq(MBB1); in isProfitableToHoistInto()
|
| H A D | IfConversion.cpp | 832 MachineBasicBlock *MBB1, in verifySameBranchInstructions() argument 1818 MachineBasicBlock &MBB1 = *BBI1->BB; in IfConvertDiamondCommon() local 1829 Redefs.addLiveInsNoPristines(MBB1); in IfConvertDiamondCommon() 1844 if (DI1 == MBB1.end()) in IfConvertDiamondCommon() 1869 BBI.BB->splice(BBI.BB->end(), &MBB1, MBB1.begin(), DI1); in IfConvertDiamondCommon() 1881 verifySameBranchInstructions(&MBB1, &MBB2); in IfConvertDiamondCommon() 1885 DI1 = MBB1.end(); in IfConvertDiamondCommon() 1886 while (DI1 != MBB1.begin()) { in IfConvertDiamondCommon() 1895 assert(DI1 != MBB1.begin()); in IfConvertDiamondCommon() 1902 MBB1.getParent()->eraseCallSiteInfo(&*DI1); in IfConvertDiamondCommon() [all …]
|
| H A D | SplitKit.cpp | 977 MachineBasicBlock *MBB1 = LIS.getMBBFromIndex((*It1)->def); in computeRedundantBackCopies() local 979 if (MBB1 == MBB2) { in computeRedundantBackCopies() 981 } else if (MDT.dominates(MBB1, MBB2)) { in computeRedundantBackCopies() 983 } else if (MDT.dominates(MBB2, MBB1)) { in computeRedundantBackCopies()
|
| H A D | LiveIntervals.cpp | 842 MachineBasicBlock *MBB1 = Indexes->getMBBFromIndex(Start); in intervalIsInOneMBB() local 844 return MBB1 == MBB2 ? MBB1 : nullptr; in intervalIsInOneMBB()
|
| /llvm-project-15.0.7/llvm/unittests/Target/WebAssembly/ |
| H A D | WebAssemblyExceptionInfoTest.cpp | 355 auto *MBB1 = MF->getBlockNumbered(1); in TEST() local 356 auto *WE0 = WEI.getExceptionFor(MBB1); in TEST() 358 EXPECT_EQ(WE0->getEHPad(), MBB1); in TEST() 365 EXPECT_EQ(WE0->getEHPad(), MBB1); in TEST() 370 EXPECT_EQ(WE0->getEHPad(), MBB1); in TEST() 375 EXPECT_EQ(WE0->getEHPad(), MBB1); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCMIPeephole.cpp | 1342 MachineBasicBlock *MBB1 = nullptr, *MBBtoMoveCmp = nullptr; in eliminateRedundantCompare() local 1371 if (!eligibleForCompareElimination(MBB2, MBB1, MBBtoMoveCmp, MRI)) in eliminateRedundantCompare() 1374 MachineInstr *BI1 = &*MBB1->getFirstInstrTerminator(); in eliminateRedundantCompare() 1426 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1428 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1450 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1562 .addReg(BI1->getOperand(1).getReg()).addMBB(MBB1) in eliminateRedundantCompare()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | R600MachineCFGStructurizer.cpp | 1576 MachineBasicBlock *MBB1 = *MBB->succ_begin(); in removeRedundantConditionalBranch() local 1578 if (MBB1 != MBB2) in removeRedundantConditionalBranch() 1585 SHOWNEWBLK(MBB1, "Removing redundant successor"); in removeRedundantConditionalBranch() 1586 MBB->removeSuccessor(MBB1, true); in removeRedundantConditionalBranch()
|