Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DSimplifyCFGPass.cpp103 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in mergeEmptyReturnBlocks() local
104 if (!RetBlockPHI) { in mergeEmptyReturnBlocks()
107 RetBlockPHI = PHINode::Create(Ret->getOperand(0)->getType(), in mergeEmptyReturnBlocks()
112 RetBlockPHI->addIncoming(InVal, *PI); in mergeEmptyReturnBlocks()
113 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()
119 RetBlockPHI->addIncoming(Ret->getOperand(0), &BB); in mergeEmptyReturnBlocks()