reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
117 if (BI->isUnconditional()) return false; // Can't optimize uncond branch 118 BasicBlock *Dest1 = BI->getSuccessor(0); 119 BasicBlock *Dest2 = BI->getSuccessor(1); 121 if (auto *Cond = dyn_cast<ConstantInt>(BI->getCondition())) { 133 BI->eraseFromParent(); 145 assert(BI->getParent() && "Terminator not inserted in block!"); 146 Dest1->removePredecessor(BI->getParent()); 150 Value *Cond = BI->getCondition(); 151 BI->eraseFromParent();