Searched refs:RetBlock (Results 1 – 1 of 1) sorted by relevance
57 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local83 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()[all …]