Lines Matching refs:RetBlock
81 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local
107 if (!RetBlock) { in mergeEmptyReturnBlocks()
108 RetBlock = &BB; in mergeEmptyReturnBlocks()
119 if (RetBlock == CBI->getSuccessor(i)) { in mergeEmptyReturnBlocks()
135 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks()
136 BB.replaceAllUsesWith(RetBlock); in mergeEmptyReturnBlocks()
142 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in mergeEmptyReturnBlocks()
144 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()
145 pred_iterator PB = pred_begin(RetBlock), PE = pred_end(RetBlock); in mergeEmptyReturnBlocks()
148 &RetBlock->front()); in mergeEmptyReturnBlocks()
152 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()
160 BranchInst::Create(RetBlock, &BB); in mergeEmptyReturnBlocks()