Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/IPO/
DPartialInlining.cpp74 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()
[all …]