Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Terminator

233               << "' with terminator: " << *BB->getTerminator() << '\n');
248 // If the terminator is the only non-phi instruction, try to nuke it.
289 // Sum up the cost of each instruction until we get to the terminator. Don't
290 // include the terminator because the copy won't include it.
365 /// terminator with the given value as its condition, and if so what value to
423 /// predecessor based on its terminator.
736 // Look to see if the terminator is a conditional branch, switch or indirect
739 Instruction *Terminator = BB->getTerminator();
740 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) {
744 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(Terminator)) {
746 } else if (IndirectBrInst *IB = dyn_cast<IndirectBrInst>(Terminator)) {
767 // If the terminator is branching on an undef, we can pick any of the
780 << "' folding undef terminator: " << *BBTerm << '\n');
786 // If the terminator of this block is branching on a constant, simplify the
787 // terminator to an unconditional branch. This can occur due to threading in
791 << "' folding terminator: " << *BB->getTerminator() << '\n');
802 if (ProcessThreadableEdges(Condition, BB, Preference, Terminator))
865 if (ProcessThreadableEdges(CondInst, BB, Preference, Terminator))
1228 && "Unexpected terminator");
1525 // We didn't copy the terminator from BB over to NewBB, because there is now
1573 // Ok, NewBB is good to go. Update the terminator of PredBB to jump to
1845 // terminator in BB. We don't do the transform if both sides fold, those