This commit improves bugpoints speed. On my G4 this changed caused kimwitu++ to run...
authorPatrick Jenkins <pjenkins@apple.com>
Fri, 28 Jul 2006 01:19:28 +0000 (01:19 +0000)
committerPatrick Jenkins <pjenkins@apple.com>
Fri, 28 Jul 2006 01:19:28 +0000 (01:19 +0000)
commite47863e212e0af6239f6f40b2496ede29847bbce
treed8d4897a48b67a2067385d78cf1fda86c2dd4611
parentdc7a66a0819e65fa5164c9bdc35e02f47b878b47
This commit improves bugpoints speed. On my G4 this changed caused kimwitu++ to run through bugpoint in 1091.15 seconds (user + system time). The time it took to run this on my G4 before I made these changes is 1420.82 seconds (user + system time). This is a speedup of about 5.5 minutes.

This is faster because SplitFunctionsOutOfModule no longer calls Clone Module and then removes the functions it doesnt want from the module returned. Instead it creates a module and copies over the specified functions, making changes to the new and old module where neccessary. This reduces the memory demand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29379 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/ExtractFunction.cpp