Home
last modified time | relevance | path

Searched refs:RetBlock (Results 1 – 4 of 4) 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/llvm-project/llvm/lib/Transforms/Scalar/
DSimplifyCFGPass.cpp81 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()
[all …]
/external/swiftshader/third_party/llvm-10.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/llvm-project/clang/lib/CodeGen/
DCodeGenFunction.cpp2481 llvm::BasicBlock *RetBlock = createBasicBlock("resolver_return", Resolver); in EmitMultiVersionResolver() local
2482 CGBuilderTy RetBuilder(*this, RetBlock); in EmitMultiVersionResolver()
2486 Builder.CreateCondBr(Condition, RetBlock, CurBlock); in EmitMultiVersionResolver()