Home
last modified time | relevance | path

Searched refs:RetBlock (Results 1 – 1 of 1) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DSimplifyCFGPass.cpp57 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()
[all …]