/external/llvm-project/llvm/unittests/CodeGen/ |
D | LexicalScopesTest.cpp | 55 MachineBasicBlock *MBB1, *MBB2, *MBB3, *MBB4; member in __anon2b461fef0111::LexicalScopesTest 84 MBB1 = MF->CreateMachineBasicBlock(BB1); in LexicalScopesTest() 85 MF->insert(MF->end(), MBB1); in LexicalScopesTest() 92 MBB1->addSuccessor(MBB2); in LexicalScopesTest() 93 MBB1->addSuccessor(MBB3); in LexicalScopesTest() 129 BuildMI(*MBB1, MBB1->end(), OutermostLoc, BeanInst); in TEST_F() 176 BuildMI(*MBB1, MBB1->end(), InBlockLoc, BeanInst); in TEST_F() 211 BuildMI(*MBB1, MBB1->end(), InlinedLoc, BeanInst); in TEST_F() 246 BuildMI(*MBB1, MBB1->end(), OutermostLoc, BeanInst); in TEST_F() 267 MachineInstr *FirstI = BuildMI(*MBB1, MBB1->end(), InBlockLoc, BeanInst); in TEST_F() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | BranchFolding.cpp | 321 static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1, in ComputeCommonTailLength() argument 325 MachineBasicBlock::iterator MBBI1 = MBB1->end(); in ComputeCommonTailLength() 330 MBBI1 = skipBackwardPastNonInstructions(MBBI1, MBB1); in ComputeCommonTailLength() 332 if (MBBI1 == MBB1->end() || MBBI2 == MBB2->end()) in ComputeCommonTailLength() 540 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument 551 auto EHScope1 = EHScopeMembership.find(MBB1); in ProfitableToMerge() 559 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge() 562 LLVM_DEBUG(dbgs() << "Common tail length of " << printMBBReference(*MBB1) in ProfitableToMerge() 569 if (skipDebugInstructionsForward(MBB1->begin(), MBB1->end()) == I1) in ProfitableToMerge() 570 I1 = MBB1->begin(); in ProfitableToMerge() [all …]
|
D | MachineCSE.cpp | 146 MachineBasicBlock *MBB1); 806 auto MBB1 = PREMap[MI]; in ProcessBlockPRE() local 808 !DT->properlyDominates(MBB, MBB1) && in ProcessBlockPRE() 810 auto CMBB = DT->findNearestCommonDominator(MBB, MBB1); in ProcessBlockPRE() 814 if (!isProfitableToHoistInto(CMBB, MBB, MBB1)) in ProcessBlockPRE() 819 if (CMBB != MBB1) { in ProcessBlockPRE() 820 auto BB = MBB->getBasicBlock(), BB1 = MBB1->getBasicBlock(); in ProcessBlockPRE() 877 MachineBasicBlock *MBB1) { in isProfitableToHoistInto() argument 881 assert(DT->dominates(CandidateBB, MBB1) && in isProfitableToHoistInto() 884 MBFI->getBlockFreq(MBB) + MBFI->getBlockFreq(MBB1); in isProfitableToHoistInto()
|
D | IfConversion.cpp | 834 MachineBasicBlock *MBB1, in verifySameBranchInstructions() argument 836 const MachineBasicBlock::reverse_iterator B1 = MBB1->rend(); in verifySameBranchInstructions() 838 MachineBasicBlock::reverse_iterator E1 = MBB1->rbegin(); in verifySameBranchInstructions() 1820 MachineBasicBlock &MBB1 = *BBI1->BB; in IfConvertDiamondCommon() local 1831 Redefs.addLiveIns(MBB1); in IfConvertDiamondCommon() 1837 MachineBasicBlock::iterator DI1 = MBB1.getFirstNonDebugInstr(); in IfConvertDiamondCommon() 1846 if (DI1 == MBB1.end()) in IfConvertDiamondCommon() 1865 for (const MachineInstr &MI : make_range(MBB1.begin(), DI1)) { in IfConvertDiamondCommon() 1871 BBI.BB->splice(BBI.BB->end(), &MBB1, MBB1.begin(), DI1); in IfConvertDiamondCommon() 1883 verifySameBranchInstructions(&MBB1, &MBB2); in IfConvertDiamondCommon() [all …]
|
D | SplitKit.cpp | 988 MachineBasicBlock *MBB1 = LIS.getMBBFromIndex((*It1)->def); in computeRedundantBackCopies() local 990 if (MBB1 == MBB2) { in computeRedundantBackCopies() 992 } else if (MDT.dominates(MBB1, MBB2)) { in computeRedundantBackCopies() 994 } else if (MDT.dominates(MBB2, MBB1)) { in computeRedundantBackCopies()
|
D | LiveIntervals.cpp | 850 MachineBasicBlock *MBB1 = Indexes->getMBBFromIndex(Start); in intervalIsInOneMBB() local 852 return MBB1 == MBB2 ? MBB1 : nullptr; in intervalIsInOneMBB()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | BranchFolding.cpp | 335 static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1, in ComputeCommonTailLength() argument 339 MachineBasicBlock::iterator MBBI1 = MBB1->end(); in ComputeCommonTailLength() 344 MBBI1 = skipBackwardPastNonInstructions(MBBI1, MBB1); in ComputeCommonTailLength() 346 if (MBBI1 == MBB1->end() || MBBI2 == MBB2->end()) in ComputeCommonTailLength() 587 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument 598 auto EHScope1 = EHScopeMembership.find(MBB1); in ProfitableToMerge() 606 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge() 609 LLVM_DEBUG(dbgs() << "Common tail length of " << printMBBReference(*MBB1) in ProfitableToMerge() 616 if (skipDebugInstructionsForward(MBB1->begin(), MBB1->end()) == I1) in ProfitableToMerge() 617 I1 = MBB1->begin(); in ProfitableToMerge() [all …]
|
D | MachineCSE.cpp | 145 MachineBasicBlock *MBB1); 807 auto MBB1 = PREMap[MI]; in ProcessBlockPRE() local 809 !DT->properlyDominates(MBB, MBB1) && in ProcessBlockPRE() 811 auto CMBB = DT->findNearestCommonDominator(MBB, MBB1); in ProcessBlockPRE() 815 if (!isProfitableToHoistInto(CMBB, MBB, MBB1)) in ProcessBlockPRE() 820 if (CMBB != MBB1) { in ProcessBlockPRE() 821 auto BB = MBB->getBasicBlock(), BB1 = MBB1->getBasicBlock(); in ProcessBlockPRE() 872 MachineBasicBlock *MBB1) { in isProfitableToHoistInto() argument 876 assert(DT->dominates(CandidateBB, MBB1) && in isProfitableToHoistInto() 879 MBFI->getBlockFreq(MBB) + MBFI->getBlockFreq(MBB1); in isProfitableToHoistInto()
|
D | IfConversion.cpp | 839 MachineBasicBlock *MBB1, in verifySameBranchInstructions() argument 841 const MachineBasicBlock::reverse_iterator B1 = MBB1->rend(); in verifySameBranchInstructions() 843 MachineBasicBlock::reverse_iterator E1 = MBB1->rbegin(); in verifySameBranchInstructions() 1820 MachineBasicBlock &MBB1 = *BBI1->BB; in IfConvertDiamondCommon() local 1831 Redefs.addLiveIns(MBB1); in IfConvertDiamondCommon() 1837 MachineBasicBlock::iterator DI1 = MBB1.getFirstNonDebugInstr(); in IfConvertDiamondCommon() 1846 if (DI1 == MBB1.end()) in IfConvertDiamondCommon() 1865 for (const MachineInstr &MI : make_range(MBB1.begin(), DI1)) { in IfConvertDiamondCommon() 1871 BBI.BB->splice(BBI.BB->end(), &MBB1, MBB1.begin(), DI1); in IfConvertDiamondCommon() 1883 verifySameBranchInstructions(&MBB1, &MBB2); in IfConvertDiamondCommon() [all …]
|
D | SplitKit.cpp | 976 MachineBasicBlock *MBB1 = LIS.getMBBFromIndex((*It1)->def); in computeRedundantBackCopies() local 978 if (MBB1 == MBB2) { in computeRedundantBackCopies() 980 } else if (MDT.dominates(MBB1, MBB2)) { in computeRedundantBackCopies() 982 } else if (MDT.dominates(MBB2, MBB1)) { in computeRedundantBackCopies()
|
D | LiveIntervals.cpp | 843 MachineBasicBlock *MBB1 = Indexes->getMBBFromIndex(Start); in intervalIsInOneMBB() local 845 return MBB1 == MBB2 ? MBB1 : nullptr; in intervalIsInOneMBB()
|
/external/llvm/lib/CodeGen/ |
D | BranchFolding.cpp | 330 static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1, in ComputeCommonTailLength() argument 334 I1 = MBB1->end(); in ComputeCommonTailLength() 338 while (I1 != MBB1->begin() && I2 != MBB2->begin()) { in ComputeCommonTailLength() 342 if (I1==MBB1->begin()) { in ComputeCommonTailLength() 381 if (I1 == MBB1->begin() && I2 != MBB2->begin()) { in ComputeCommonTailLength() 390 if (I2 == MBB2->begin() && I1 != MBB1->begin()) { in ComputeCommonTailLength() 393 if (I1 == MBB1->begin()) in ComputeCommonTailLength() 595 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument 603 auto Funclet1 = FuncletMembership.find(MBB1); in ProfitableToMerge() 611 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge() [all …]
|
D | SplitKit.cpp | 775 MachineBasicBlock *MBB1 = LIS.getMBBFromIndex((*It1)->def); in computeRedundantBackCopies() local 777 if (MBB1 == MBB2) { in computeRedundantBackCopies() 779 } else if (MDT.dominates(MBB1, MBB2)) { in computeRedundantBackCopies() 781 } else if (MDT.dominates(MBB2, MBB1)) { in computeRedundantBackCopies()
|
D | LiveIntervalAnalysis.cpp | 797 MachineBasicBlock *MBB1 = Indexes->getMBBFromIndex(Start); in intervalIsInOneMBB() local 799 return MBB1 == MBB2 ? MBB1 : nullptr; in intervalIsInOneMBB()
|
/external/llvm-project/llvm/unittests/Target/WebAssembly/ |
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()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCMIPeephole.cpp | 1241 MachineBasicBlock *MBB1 = nullptr, *MBBtoMoveCmp = nullptr; in eliminateRedundantCompare() local 1270 if (!eligibleForCompareElimination(MBB2, MBB1, MBBtoMoveCmp, MRI)) in eliminateRedundantCompare() 1273 MachineInstr *BI1 = &*MBB1->getFirstInstrTerminator(); in eliminateRedundantCompare() 1325 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1327 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1349 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1461 .addReg(BI1->getOperand(1).getReg()).addMBB(MBB1) in eliminateRedundantCompare()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCMIPeephole.cpp | 1266 MachineBasicBlock *MBB1 = nullptr, *MBBtoMoveCmp = nullptr; in eliminateRedundantCompare() local 1295 if (!eligibleForCompareElimination(MBB2, MBB1, MBBtoMoveCmp, MRI)) in eliminateRedundantCompare() 1298 MachineInstr *BI1 = &*MBB1->getFirstInstrTerminator(); in eliminateRedundantCompare() 1350 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1352 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1374 MBB1, &MBB2, MRI); in eliminateRedundantCompare() 1486 .addReg(BI1->getOperand(1).getReg()).addMBB(MBB1) in eliminateRedundantCompare()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDILCFGStructurizer.cpp | 1613 MachineBasicBlock *MBB1 = *MBB->succ_begin(); in removeRedundantConditionalBranch() local 1615 if (MBB1 != MBB2) in removeRedundantConditionalBranch() 1622 SHOWNEWBLK(MBB1, "Removing redundant successor"); in removeRedundantConditionalBranch() 1623 MBB->removeSuccessor(MBB1, true); in removeRedundantConditionalBranch()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDILCFGStructurizer.cpp | 1671 MachineBasicBlock *MBB1 = *MBB->succ_begin(); in removeRedundantConditionalBranch() local 1673 if (MBB1 != MBB2) in removeRedundantConditionalBranch() 1680 SHOWNEWBLK(MBB1, "Removing redundant successor"); in removeRedundantConditionalBranch() 1681 MBB->removeSuccessor(MBB1, true); in removeRedundantConditionalBranch()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDILCFGStructurizer.cpp | 1613 MachineBasicBlock *MBB1 = *MBB->succ_begin(); in removeRedundantConditionalBranch() local 1615 if (MBB1 != MBB2) in removeRedundantConditionalBranch() 1622 SHOWNEWBLK(MBB1, "Removing redundant successor"); in removeRedundantConditionalBranch() 1623 MBB->removeSuccessor(MBB1, true); in removeRedundantConditionalBranch()
|