Searched refs:PrevBB (Results 1 – 4 of 4) sorted by relevance
/external/llvm/lib/CodeGen/ |
D | BranchFolding.cpp | 1094 MachineBasicBlock &PrevBB = *prior(MachineFunction::iterator(MBB)); in OptimizeBlock() local 1099 TII->AnalyzeBranch(PrevBB, PriorTBB, PriorFBB, PriorCond, true); in OptimizeBlock() 1102 MadeChange |= PrevBB.CorrectExtraCFGEdges(PriorTBB, PriorFBB, in OptimizeBlock() 1109 DebugLoc dl = getBranchDebugLoc(PrevBB); in OptimizeBlock() 1110 TII->RemoveBranch(PrevBB); in OptimizeBlock() 1113 TII->InsertBranch(PrevBB, PriorTBB, 0, PriorCond, dl); in OptimizeBlock() 1127 PrevBB.succ_size() == 1 && in OptimizeBlock() 1129 DEBUG(dbgs() << "\nMerging into block: " << PrevBB in OptimizeBlock() 1132 if (PrevBB.begin() != PrevBB.end()) { in OptimizeBlock() 1133 MachineBasicBlock::iterator PrevBBIter = PrevBB.end(); in OptimizeBlock() [all …]
|
D | TailDuplication.cpp | 850 MachineBasicBlock *PrevBB = prior(MachineFunction::iterator(TailBB)); in TailDuplicate() local 855 if (PrevBB->succ_size() == 1 && in TailDuplicate() 856 !TII->AnalyzeBranch(*PrevBB, PriorTBB, PriorFBB, PriorCond, true) && in TailDuplicate() 859 DEBUG(dbgs() << "\nMerging into block: " << *PrevBB in TailDuplicate() 870 ProcessPHI(MI, TailBB, PrevBB, LocalVRMap, CopyInfos, UsedByPhi, true); in TailDuplicate() 881 DuplicateInstruction(MI, TailBB, PrevBB, MF, LocalVRMap, UsedByPhi); in TailDuplicate() 884 MachineBasicBlock::iterator Loc = PrevBB->getFirstTerminator(); in TailDuplicate() 886 Copies.push_back(BuildMI(*PrevBB, Loc, DebugLoc(), in TailDuplicate() 893 PrevBB->splice(PrevBB->end(), TailBB, TailBB->begin(), TailBB->end()); in TailDuplicate() 895 PrevBB->removeSuccessor(PrevBB->succ_begin()); in TailDuplicate() [all …]
|
D | MachineBlockPlacement.cpp | 986 MachineBasicBlock *PrevBB = llvm::prior(MachineFunction::iterator(*BI)); in buildCFGChains() local 993 if (!TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains() 1006 PrevBB->updateTerminator(); in buildCFGChains() 1010 if (TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains() 1019 MBPI->getEdgeWeight(PrevBB, FBB) > MBPI->getEdgeWeight(PrevBB, TBB) && in buildCFGChains() 1022 << getBlockName(PrevBB) << "\n"); in buildCFGChains() 1023 DEBUG(dbgs() << " Edge weight: " << MBPI->getEdgeWeight(PrevBB, FBB) in buildCFGChains() 1024 << " vs " << MBPI->getEdgeWeight(PrevBB, TBB) << "\n"); in buildCFGChains() 1026 TII->RemoveBranch(*PrevBB); in buildCFGChains() 1027 TII->InsertBranch(*PrevBB, FBB, TBB, Cond, dl); in buildCFGChains() [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 947 BasicBlock *PrevBB = SF.CurBB; // Remember where we came from... in SwitchToNewBasicBlock() local 958 int i = PN->getBasicBlockIndex(PrevBB); in SwitchToNewBasicBlock()
|