Loading llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -117,12 +117,12 @@ bool llvm::isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, return false; } /// CreatePHIsForSplitLoopExit - When a loop exit edge is split, LCSSA form /// createPHIsForSplitLoopExit - When a loop exit edge is split, LCSSA form /// may require new PHIs in the new exit block. This function inserts the /// new PHIs, as needed. Preds is a list of preds inside the loop, SplitBB /// is the new loop exit block, and DestBB is the old loop exit, now the /// successor of SplitBB. static void CreatePHIsForSplitLoopExit(SmallVectorImpl<BasicBlock *> &Preds, static void createPHIsForSplitLoopExit(SmallVectorImpl<BasicBlock *> &Preds, BasicBlock *SplitBB, BasicBlock *DestBB) { // SplitBB shouldn't have anything non-trivial in it yet. Loading Loading @@ -344,7 +344,7 @@ BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, if (P->mustPreserveAnalysisID(LCSSAID)) { SmallVector<BasicBlock *, 1> OrigPred; OrigPred.push_back(TIBB); CreatePHIsForSplitLoopExit(OrigPred, NewBB, DestBB); createPHIsForSplitLoopExit(OrigPred, NewBB, DestBB); } // For each unique exit block... Loading Loading
llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -117,12 +117,12 @@ bool llvm::isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, return false; } /// CreatePHIsForSplitLoopExit - When a loop exit edge is split, LCSSA form /// createPHIsForSplitLoopExit - When a loop exit edge is split, LCSSA form /// may require new PHIs in the new exit block. This function inserts the /// new PHIs, as needed. Preds is a list of preds inside the loop, SplitBB /// is the new loop exit block, and DestBB is the old loop exit, now the /// successor of SplitBB. static void CreatePHIsForSplitLoopExit(SmallVectorImpl<BasicBlock *> &Preds, static void createPHIsForSplitLoopExit(SmallVectorImpl<BasicBlock *> &Preds, BasicBlock *SplitBB, BasicBlock *DestBB) { // SplitBB shouldn't have anything non-trivial in it yet. Loading Loading @@ -344,7 +344,7 @@ BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, if (P->mustPreserveAnalysisID(LCSSAID)) { SmallVector<BasicBlock *, 1> OrigPred; OrigPred.push_back(TIBB); CreatePHIsForSplitLoopExit(OrigPred, NewBB, DestBB); createPHIsForSplitLoopExit(OrigPred, NewBB, DestBB); } // For each unique exit block... Loading