Lines Matching refs:OrigHeader

53 static void RewriteUsesOfClonedInstructions(BasicBlock *OrigHeader,  in RewriteUsesOfClonedInstructions()  argument
57 BasicBlock::iterator I, E = OrigHeader->end(); in RewriteUsesOfClonedInstructions()
58 for (I = OrigHeader->begin(); PHINode *PN = dyn_cast<PHINode>(I); ++I) in RewriteUsesOfClonedInstructions()
64 for (I = OrigHeader->begin(); I != E; ++I) { in RewriteUsesOfClonedInstructions()
77 SSA.AddAvailableValue(OrigHeader, OrigHeaderVal); in RewriteUsesOfClonedInstructions()
97 if (UserBB == OrigHeader) in RewriteUsesOfClonedInstructions()
132 BasicBlock *OrigHeader = L->getHeader(); in rotateLoop() local
135 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop()
142 if (!L->isLoopExiting(OrigHeader)) in rotateLoop()
162 Metrics.analyzeBasicBlock(OrigHeader, *TTI, EphValues); in rotateLoop()
206 BasicBlock::iterator I = OrigHeader->begin(), E = OrigHeader->end(); in rotateLoop()
264 TerminatorInst *TI = OrigHeader->getTerminator(); in rotateLoop()
268 PN->addIncoming(PN->getIncomingValueForBlock(OrigHeader), OrigPreheader); in rotateLoop()
277 RewriteUsesOfClonedInstructions(OrigHeader, OrigPreheader, ValueMap); in rotateLoop()
304 DomTreeNode *OrigHeaderNode = DT->getNode(OrigHeader); in rotateLoop()
315 DT->changeImmediateDominator(OrigHeader, OrigLatch); in rotateLoop()
360 DT->changeImmediateDominator(OrigHeader, OrigLatch); in rotateLoop()
365 DomTreeNode *OrigHeaderNode = DT->getNode(OrigHeader); in rotateLoop()
400 MergeBlockIntoPredecessor(OrigHeader, DT, LI); in rotateLoop()