Searched refs:duplicateFunction (Results 1 – 2 of 2) sorted by relevance
73 Function* duplicateFunction = CloneFunction(F, VMap, in unswitchFunction() local75 duplicateFunction->setLinkage(GlobalValue::InternalLinkage); in unswitchFunction()76 F->getParent()->getFunctionList().push_back(duplicateFunction); in unswitchFunction()83 F->replaceAllUsesWith(duplicateFunction); in unswitchFunction()114 for (Function::iterator FI = duplicateFunction->begin(), in unswitchFunction()115 FE = duplicateFunction->end(); FI != FE; ++FI) in unswitchFunction()122 DT.runOnFunction(*duplicateFunction); in unswitchFunction()130 std::vector<User*> Users(duplicateFunction->use_begin(), in unswitchFunction()131 duplicateFunction->use_end()); in unswitchFunction()141 duplicateFunction->replaceAllUsesWith(F); in unswitchFunction()[all …]
82 Function* duplicateFunction = CloneFunction(F, VMap); in unswitchFunction() local83 duplicateFunction->setLinkage(GlobalValue::InternalLinkage); in unswitchFunction()90 F->replaceAllUsesWith(duplicateFunction); in unswitchFunction()121 for (BasicBlock &BB : *duplicateFunction) in unswitchFunction()128 DT.recalculate(*duplicateFunction); in unswitchFunction()137 std::vector<User *> Users(duplicateFunction->user_begin(), in unswitchFunction()138 duplicateFunction->user_end()); in unswitchFunction()147 duplicateFunction->replaceAllUsesWith(F); in unswitchFunction()148 duplicateFunction->eraseFromParent(); in unswitchFunction()