Home
last modified time | relevance | path

Searched refs:PrevBB (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/CodeGen/
DBranchFolding.cpp1224 MachineBasicBlock &PrevBB = *std::prev(MachineFunction::iterator(MBB)); in OptimizeBlock() local
1229 TII->AnalyzeBranch(PrevBB, PriorTBB, PriorFBB, PriorCond, true); in OptimizeBlock()
1232 MadeChange |= PrevBB.CorrectExtraCFGEdges(PriorTBB, PriorFBB, in OptimizeBlock()
1239 DebugLoc dl = getBranchDebugLoc(PrevBB); in OptimizeBlock()
1240 TII->RemoveBranch(PrevBB); in OptimizeBlock()
1243 TII->InsertBranch(PrevBB, PriorTBB, nullptr, PriorCond, dl); in OptimizeBlock()
1257 PrevBB.succ_size() == 1 && in OptimizeBlock()
1259 DEBUG(dbgs() << "\nMerging into block: " << PrevBB in OptimizeBlock()
1262 if (PrevBB.begin() != PrevBB.end()) { in OptimizeBlock()
1263 MachineBasicBlock::iterator PrevBBIter = PrevBB.end(); in OptimizeBlock()
[all …]
DTailDuplication.cpp857 MachineBasicBlock *PrevBB = std::prev(MachineFunction::iterator(TailBB)); in TailDuplicate() local
862 if (PrevBB->succ_size() == 1 && in TailDuplicate()
863 !TII->AnalyzeBranch(*PrevBB, PriorTBB, PriorFBB, PriorCond, true) && in TailDuplicate()
866 DEBUG(dbgs() << "\nMerging into block: " << *PrevBB in TailDuplicate()
877 ProcessPHI(MI, TailBB, PrevBB, LocalVRMap, CopyInfos, UsedByPhi, true); in TailDuplicate()
888 DuplicateInstruction(MI, TailBB, PrevBB, MF, LocalVRMap, UsedByPhi); in TailDuplicate()
891 MachineBasicBlock::iterator Loc = PrevBB->getFirstTerminator(); in TailDuplicate()
893 Copies.push_back(BuildMI(*PrevBB, Loc, DebugLoc(), in TailDuplicate()
900 PrevBB->splice(PrevBB->end(), TailBB, TailBB->begin(), TailBB->end()); in TailDuplicate()
902 PrevBB->removeSuccessor(PrevBB->succ_begin()); in TailDuplicate()
[all …]
DMachineBlockPlacement.cpp1007 MachineBasicBlock *PrevBB = std::prev(MachineFunction::iterator(ChainBB)); in buildCFGChains() local
1014 if (!TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains()
1027 PrevBB->updateTerminator(); in buildCFGChains()
1031 if (TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains()
1040 MBPI->getEdgeWeight(PrevBB, FBB) > MBPI->getEdgeWeight(PrevBB, TBB) && in buildCFGChains()
1043 << getBlockName(PrevBB) << "\n"); in buildCFGChains()
1044 DEBUG(dbgs() << " Edge weight: " << MBPI->getEdgeWeight(PrevBB, FBB) in buildCFGChains()
1045 << " vs " << MBPI->getEdgeWeight(PrevBB, TBB) << "\n"); in buildCFGChains()
1047 TII->RemoveBranch(*PrevBB); in buildCFGChains()
1048 TII->InsertBranch(*PrevBB, FBB, TBB, Cond, dl); in buildCFGChains()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64A53Fix835769.cpp134 MachineBasicBlock *PrevBB = std::prev(MBBI); in getBBFallenThrough() local
136 if (S == PrevBB && !TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond) && in getBBFallenThrough()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp931 BasicBlock *PrevBB = SF.CurBB; // Remember where we came from... in SwitchToNewBasicBlock() local
942 int i = PN->getBasicBlockIndex(PrevBB); in SwitchToNewBasicBlock()