Searched refs:RetBlock (Results 1 – 3 of 3) sorted by relevance
59 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local85 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()[all …]
76 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local102 if (!RetBlock) { in mergeEmptyReturnBlocks()103 RetBlock = &BB; in mergeEmptyReturnBlocks()115 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks()116 BB.replaceAllUsesWith(RetBlock); in mergeEmptyReturnBlocks()122 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in mergeEmptyReturnBlocks()124 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()125 pred_iterator PB = pred_begin(RetBlock), PE = pred_end(RetBlock); in mergeEmptyReturnBlocks()128 &RetBlock->front()); in mergeEmptyReturnBlocks()132 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()[all …]
213 BasicBlock *RetBlock = 0; in MergeEmptyReturnBlocks() local240 if (RetBlock == 0) { in MergeEmptyReturnBlocks()241 RetBlock = &BB; in MergeEmptyReturnBlocks()253 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in MergeEmptyReturnBlocks()254 BB.replaceAllUsesWith(RetBlock); in MergeEmptyReturnBlocks()260 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in MergeEmptyReturnBlocks()262 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in MergeEmptyReturnBlocks()263 pred_iterator PB = pred_begin(RetBlock), PE = pred_end(RetBlock); in MergeEmptyReturnBlocks()266 &RetBlock->front()); in MergeEmptyReturnBlocks()270 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in MergeEmptyReturnBlocks()[all …]