Lines Matching refs:NewHeader
258 BasicBlock *NewHeader = BI->getSuccessor(1); in rotateLoop() local
260 std::swap(Exit, NewHeader); in rotateLoop()
261 assert(NewHeader && "Unable to determine new loop header"); in rotateLoop()
262 assert(L->contains(NewHeader) && !L->contains(Exit) && in rotateLoop()
267 assert(NewHeader->getSinglePredecessor() && in rotateLoop()
269 FoldSingleEntryPHINodes(NewHeader); in rotateLoop()
351 L->moveToHeader(NewHeader); in rotateLoop()
352 assert(L->getHeader() == NewHeader && "Latch block is our new header"); in rotateLoop()
365 NewHeader) { in rotateLoop()
382 assert(DT->getNode(NewHeader)->getIDom() == OrigPreheaderNode); in rotateLoop()
392 OrigPreheader, NewHeader, in rotateLoop()
394 NewPH->setName(NewHeader->getName() + ".lr.ph"); in rotateLoop()
421 BranchInst *NewBI = BranchInst::Create(NewHeader, PHBI); in rotateLoop()
428 DT->changeImmediateDominator(NewHeader, OrigPreheader); in rotateLoop()