Lines Matching refs:BB
67 for (BasicBlock *BB : depth_first_ext(&F, Reachable)) in runOnFunction()
68 (void)BB/* Mark all reachable blocks */; in runOnFunction()
75 BasicBlock *BB = &*I; in runOnFunction() local
76 DeadBlocks.push_back(BB); in runOnFunction()
77 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) { in runOnFunction()
79 BB->getInstList().pop_front(); in runOnFunction()
81 for (succ_iterator SI = succ_begin(BB), E = succ_end(BB); SI != E; ++SI) in runOnFunction()
82 (*SI)->removePredecessor(BB); in runOnFunction()
83 BB->dropAllReferences(); in runOnFunction()
127 for (MachineBasicBlock *BB : depth_first_ext(&F, Reachable)) in runOnMachineFunction()
128 (void)BB/* Mark all reachable blocks */; in runOnMachineFunction()
134 MachineBasicBlock *BB = &*I; in runOnMachineFunction() local
137 if (!Reachable.count(BB)) { in runOnMachineFunction()
138 DeadBlocks.push_back(BB); in runOnMachineFunction()
141 if (MLI) MLI->removeBlock(BB); in runOnMachineFunction()
142 if (MDT && MDT->getNode(BB)) MDT->eraseNode(BB); in runOnMachineFunction()
144 while (BB->succ_begin() != BB->succ_end()) { in runOnMachineFunction()
145 MachineBasicBlock* succ = *BB->succ_begin(); in runOnMachineFunction()
151 start->getOperand(i).getMBB() == BB) { in runOnMachineFunction()
159 BB->removeSuccessor(BB->succ_begin()); in runOnMachineFunction()
170 MachineBasicBlock *BB = &*I; in runOnMachineFunction() local
172 SmallPtrSet<MachineBasicBlock*, 8> preds(BB->pred_begin(), in runOnMachineFunction()
173 BB->pred_end()); in runOnMachineFunction()
174 MachineBasicBlock::iterator phi = BB->begin(); in runOnMachineFunction()
175 while (phi != BB->end() && phi->isPHI()) { in runOnMachineFunction()