Lines Matching full:newheader
327 // Find new Loop header. NewHeader is a Header's one and only successor
331 BasicBlock *NewHeader = BI->getSuccessor(1);
333 std::swap(Exit, NewHeader);
334 assert(NewHeader && "Unable to determine new loop header");
335 assert(L->contains(NewHeader) && !L->contains(Exit) &&
340 assert(NewHeader->getSinglePredecessor() &&
342 FoldSingleEntryPHINodes(NewHeader);
416 // NewHeader is now the header of the loop.
417 L->moveToHeader(NewHeader);
418 assert(L->getHeader() == NewHeader && "Latch block is our new header");
432 != NewHeader) {
449 assert(DT->getNode(NewHeader)->getIDom() == OrigPreheaderNode);
455 // Right now OrigPreHeader has two successors, NewHeader and ExitBlock, and
458 BasicBlock *NewPH = SplitCriticalEdge(OrigPreheader, NewHeader, this);
459 NewPH->setName(NewHeader->getName() + ".lr.ph");
469 BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI);
476 DT->changeImmediateDominator(NewHeader, OrigPreheader);