Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DSimplifyCFGPass.cpp59 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local
85 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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSimplifyCFGPass.cpp76 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local
102 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 …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyCFGPass.cpp213 BasicBlock *RetBlock = 0; in MergeEmptyReturnBlocks() local
240 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 …]