Lines Matching refs:duplicateFunction
74 Function* duplicateFunction = CloneFunction(F, VMap, in unswitchFunction() local
76 duplicateFunction->setLinkage(GlobalValue::InternalLinkage); in unswitchFunction()
77 F->getParent()->getFunctionList().push_back(duplicateFunction); in unswitchFunction()
84 F->replaceAllUsesWith(duplicateFunction); in unswitchFunction()
115 for (Function::iterator FI = duplicateFunction->begin(), in unswitchFunction()
116 FE = duplicateFunction->end(); FI != FE; ++FI) in unswitchFunction()
123 DT.recalculate(*duplicateFunction); in unswitchFunction()
132 std::vector<User *> Users(duplicateFunction->user_begin(), in unswitchFunction()
133 duplicateFunction->user_end()); in unswitchFunction()
143 duplicateFunction->replaceAllUsesWith(F); in unswitchFunction()
144 duplicateFunction->eraseFromParent(); in unswitchFunction()