Lines Matching defs:NewBB
168 // NewBB. If the first isn't true, then LoopSimplify still holds, NewBB
199 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(),
202 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB);
208 F.getBasicBlockList().insert(++FBBI, NewBB);
211 TI->setSuccessor(SuccNum, NewBB);
214 // merge incoming values from NewBB instead of from TIBB.
218 // We no longer enter through TIBB, now we come in through NewBB.
220 // TIBB to come from NewBB.
230 PN->setIncomingBlock(BBIdx, NewBB);
244 // We found another edge to DestBB, go to NewBB instead.
245 TI->setSuccessor(i, NewBB);
255 DestBB, NewBB, {TIBB}, Options.MergeIdenticalEdges);
258 return NewBB;
262 // ---> NewBB -----\
266 // First, inform the DT about the new path from TIBB to DestBB via NewBB,
271 Updates.push_back({DominatorTree::Insert, TIBB, NewBB});
272 Updates.push_back({DominatorTree::Insert, NewBB, DestBB});
289 // Both in the same loop, the NewBB joins loop.
290 DestLoop->addBasicBlockToLoop(NewBB, *LI);
293 TIL->addBasicBlockToLoop(NewBB, *LI);
296 DestLoop->addBasicBlockToLoop(NewBB, *LI);
305 P->addBasicBlockToLoop(NewBB, *LI);
312 assert(!TIL->contains(NewBB) &&
317 createPHIsForSplitLoopExit(TIBB, NewBB, DestBB);
331 return NewBB;