Lines Matching defs:Header
37 DefaultRotationThreshold("rotation-max-header-size", cl::init(16), cl::Hidden,
38 cl::desc("The default maximum header size for automatic loop rotation"));
102 // Simplify the loop latch before attempting to rotate the header
123 /// old header into the preheader. If there were uses of the values produced by
148 // and the loop "next" value in the original header.
235 /// duplicating the entire loop header. In the cast of loops with early exits,
267 BasicBlock *Header = Jmp->getSuccessor(0);
268 assert(Header == L->getHeader() && "expected a backward branch");
271 BI->setSuccessor(FallThruPath, Header);
307 // If the loop header is not one of the loop exiting blocks then
323 // Check size of original header and reject loop if it is very big or we can't
346 // in its header will soon be invalidated.
352 // Find new Loop header. NewHeader is a Header's one and only successor
353 // that is inside loop. Header's other successor is outside the
359 assert(NewHeader && "Unable to determine new loop header");
361 "Unable to determine loop header and exit blocks");
363 // This code assumes that the new header has exactly one predecessor.
366 "New header doesn't have one pred!");
441 // NewHeader is now the header of the loop.
443 assert(L->getHeader() == NewHeader && "Latch block is our new header");
464 // Everything that was dominated by the old loop header is now dominated
465 // by the original loop preheader. Conceptually the header was merged
478 // Update OrigHeader to be dominated by the new header block.
519 // Update OrigHeader to be dominated by the new header block.
525 // original header.