Lines Matching refs:RetBlock
57 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local
83 if (!RetBlock) { in mergeEmptyReturnBlocks()
84 RetBlock = &BB; in mergeEmptyReturnBlocks()
96 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks()
97 BB.replaceAllUsesWith(RetBlock); in mergeEmptyReturnBlocks()
103 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in mergeEmptyReturnBlocks()
105 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()
106 pred_iterator PB = pred_begin(RetBlock), PE = pred_end(RetBlock); in mergeEmptyReturnBlocks()
109 &RetBlock->front()); in mergeEmptyReturnBlocks()
113 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()
121 BranchInst::Create(RetBlock, &BB); in mergeEmptyReturnBlocks()