Lines Matching refs:RetBlock
59 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local
85 if (!RetBlock) { in mergeEmptyReturnBlocks()
86 RetBlock = &BB; in mergeEmptyReturnBlocks()
98 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks()
99 BB.replaceAllUsesWith(RetBlock); in mergeEmptyReturnBlocks()
105 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in mergeEmptyReturnBlocks()
107 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()
108 pred_iterator PB = pred_begin(RetBlock), PE = pred_end(RetBlock); in mergeEmptyReturnBlocks()
111 &RetBlock->front()); in mergeEmptyReturnBlocks()
115 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()
123 BranchInst::Create(RetBlock, &BB); in mergeEmptyReturnBlocks()