Lines Matching defs:PrevBB
986 MachineBasicBlock *PrevBB = llvm::prior(MachineFunction::iterator(*BI));
993 if (!TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) {
994 // The "PrevBB" is not yet updated to reflect current code layout, so,
1006 PrevBB->updateTerminator();
1010 if (TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) {
1016 // If PrevBB has a two-way branch, try to re-order the branches
1019 MBPI->getEdgeWeight(PrevBB, FBB) > MBPI->getEdgeWeight(PrevBB, TBB) &&
1022 << getBlockName(PrevBB) << "\n");
1023 DEBUG(dbgs() << " Edge weight: " << MBPI->getEdgeWeight(PrevBB, FBB)
1024 << " vs " << MBPI->getEdgeWeight(PrevBB, TBB) << "\n");
1026 TII->RemoveBranch(*PrevBB);
1027 TII->InsertBranch(*PrevBB, FBB, TBB, Cond, dl);
1031 PrevBB->updateTerminator();