Lines Matching full:bb
9 // present in all the successor of a basic block (BB) to the end of BB.
61 bool analyzeCopy(MachineBasicBlock *BB);
97 // that are present in all the successors of BB to BB. in runOnMachineFunction()
99 for (MachineBasicBlock *BB : post_order(&Fn)) { in runOnMachineFunction()
100 if (!BB->empty()) { in runOnMachineFunction()
101 if (BB->pred_size() != 1) in runOnMachineFunction()
103 auto &BBCopyInst = CopyMIList[BB->getNumber()]; in runOnMachineFunction()
105 Changed |= analyzeCopy(*BB->pred_begin()); in runOnMachineFunction()
122 for (MachineBasicBlock &BB : *MFN) { in collectCopyInst()
124 auto &BBCopyInst = CopyMIList[BB.getNumber()]; in collectCopyInst()
125 LLVM_DEBUG(dbgs() << "Visiting BB#" << BB.getNumber() << ":\n"); in collectCopyInst()
128 for (MachineInstr &MI : BB) { in collectCopyInst()
159 // Look at the COPY instructions of all the successors of BB. If the same
161 // pull it into BB.
163 bool HexagonCopyHoisting::analyzeCopy(MachineBasicBlock *BB) { in analyzeCopy() argument
166 if (BB->succ_size() < 2) in analyzeCopy()
169 for (MachineBasicBlock *SB : BB->successors()) { in analyzeCopy()
174 MachineBasicBlock *SBB1 = *BB->succ_begin(); in analyzeCopy()
181 for (MachineBasicBlock *SuccBB : BB->successors()) { in analyzeCopy()
199 LLVM_DEBUG(dbgs() << "\t\t Moving instr to BB#" << BB->getNumber() << ": " in analyzeCopy()
201 moveCopyInstr(BB, Key, MI); in analyzeCopy()
202 // Add my into BB copyMI list. in analyzeCopy()
208 auto &BBCopyInst = CopyMIList[BB->getNumber()]; in analyzeCopy()
224 MachineBasicBlock *BB = CandMI->getParent(); in isSafetoMove() local
225 // There should not be a def/use of DefR between the start of BB and CandMI. in isSafetoMove()
227 for (MII = BB->begin(), MIE = CandMI; MII != MIE; ++MII) { in isSafetoMove()
233 // There should not be a def of UseR between the start of BB and CandMI. in isSafetoMove()
234 for (MII = BB->begin(), MIE = CandMI; MII != MIE; ++MII) { in isSafetoMove()