Home | History | Annotate | Download | only in Scalar

Lines Matching defs:Terminator

191               << "' with terminator: " << *BB->getTerminator() << '\n');
206 // If the terminator is the only non-phi instruction, try to nuke it.
247 // Sum up the cost of each instruction until we get to the terminator. Don't
248 // include the terminator because the copy won't include it.
318 /// terminator with the given value as its condition, and if so what value to
376 /// predecessor based on its terminator.
688 // Look to see if the terminator is a conditional branch, switch or indirect
691 Instruction *Terminator = BB->getTerminator();
692 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) {
696 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(Terminator)) {
698 } else if (IndirectBrInst *IB = dyn_cast<IndirectBrInst>(Terminator)) {
719 // If the terminator is branching on an undef, we can pick any of the
732 << "' folding undef terminator: " << *BBTerm << '\n');
738 // If the terminator of this block is branching on a constant, simplify the
739 // terminator to an unconditional branch. This can occur due to threading in
743 << "' folding terminator: " << *BB->getTerminator() << '\n');
754 if (ProcessThreadableEdges(Condition, BB, Preference, Terminator))
840 if (ProcessThreadableEdges(CondInst, BB, Preference, Terminator))
1172 && "Unexpected terminator");
1462 // We didn't copy the terminator from BB over to NewBB, because there is now
1510 // Ok, NewBB is good to go. Update the terminator of PredBB to jump to
1708 // terminator in BB. We don't do the transform if both sides fold, those