add a fixme
authorChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2004 19:31:00 +0000 (19:31 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2004 19:31:00 +0000 (19:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12388 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ExtractFunction.cpp

index 29ad23c1495c39f6e8d9805d3cd975f5db3c276f..41b5641ff50630db69a7d4a01184087bca276b17 100644 (file)
@@ -144,6 +144,11 @@ void llvm::DeleteFunctionBody(Function *F) {
 /// SplitFunctionsOutOfModule - Given a module and a list of functions in the
 /// module, split the functions OUT of the specified module, and place them in
 /// the new module.
 /// SplitFunctionsOutOfModule - Given a module and a list of functions in the
 /// module, split the functions OUT of the specified module, and place them in
 /// the new module.
+///
+/// FIXME: this could be made DRAMATICALLY more efficient for large programs if
+/// we just MOVED functions from one module to the other, instead of cloning the
+/// whole module, then proceeding to delete an entire module's worth of stuff.
+///
 Module *llvm::SplitFunctionsOutOfModule(Module *M,
                                         const std::vector<Function*> &F) {
   // Make sure functions & globals are all external so that linkage
 Module *llvm::SplitFunctionsOutOfModule(Module *M,
                                         const std::vector<Function*> &F) {
   // Make sure functions & globals are all external so that linkage