Lines Matching refs:OrigHeader
101 static void RewriteUsesOfClonedInstructions(BasicBlock *OrigHeader, in RewriteUsesOfClonedInstructions() argument
107 BasicBlock::iterator I, E = OrigHeader->end(); in RewriteUsesOfClonedInstructions()
108 for (I = OrigHeader->begin(); PHINode *PN = dyn_cast<PHINode>(I); ++I) in RewriteUsesOfClonedInstructions()
114 for (I = OrigHeader->begin(); I != E; ++I) { in RewriteUsesOfClonedInstructions()
131 SSA.AddAvailableValue(OrigHeader, OrigHeaderVal); in RewriteUsesOfClonedInstructions()
144 if (UserBB == OrigHeader) in RewriteUsesOfClonedInstructions()
168 if (UserBB == OrigHeader) in RewriteUsesOfClonedInstructions()
191 if (UserBB == OrigHeader) in RewriteUsesOfClonedInstructions()
423 BasicBlock *OrigHeader = L->getHeader(); in rotateLoop() local
426 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); in rotateLoop()
433 if (!L->isLoopExiting(OrigHeader)) in rotateLoop()
455 Metrics.analyzeBasicBlock(OrigHeader, *TTI, EphValues, PrepareForLTO); in rotateLoop()
537 BasicBlock::iterator I = OrigHeader->begin(), E = OrigHeader->end(); in rotateLoop()
586 for (Instruction &I : *OrigHeader) in rotateLoop()
590 Module *M = OrigHeader->getModule(); in rotateLoop()
759 cloneAndAdaptNoAliasScopes(NoAliasDeclScopes, {OrigHeader}, Context, in rotateLoop()
761 LLVM_DEBUG(OrigHeader->dump()); in rotateLoop()
784 for (BasicBlock *SuccBB : successors(OrigHeader)) in rotateLoop()
787 PN->addIncoming(PN->getIncomingValueForBlock(OrigHeader), OrigPreheader); in rotateLoop()
798 InsertNewValueIntoMap(ValueMapMSSA, OrigHeader, OrigPreheader); in rotateLoop()
799 MSSAU->updateForClonedBlockIntoPred(OrigHeader, OrigPreheader, in rotateLoop()
806 RewriteUsesOfClonedInstructions(OrigHeader, OrigPreheader, ValueMap, SE, in rotateLoop()
813 insertDebugValuesForPHIs(OrigHeader, InsertedPHIs); in rotateLoop()
826 Updates.push_back({DominatorTree::Delete, OrigPreheader, OrigHeader}); in rotateLoop()
913 BasicBlock *PredBB = OrigHeader->getUniquePredecessor(); in rotateLoop()
914 bool DidMerge = MergeBlockIntoPredecessor(OrigHeader, &DTU, LI, MSSAU); in rotateLoop()