Give CloneBasicBlock an optional function argument to specify which function
authorChris Lattner <sabre@nondot.org>
Wed, 4 Feb 2004 01:19:43 +0000 (01:19 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Feb 2004 01:19:43 +0000 (01:19 +0000)
commit23b4c68f465373f5c82551e42725af5dc150221f
tree51ae08cb4c2bdc3cb276b92e63defa01e9a26028
parent786993c01ec8bdabe354fb62a083fedc9d7a087e
Give CloneBasicBlock an optional function argument to specify which function
to add the cloned block to.  This allows the block to be added to the function
immediately, and all of the instructions to be immediately added to the function
symbol table, which speeds up the inliner from 3.7 -> 3.38s on the PR209.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11107 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CloneFunction.cpp
lib/Transforms/Utils/CloneTrace.cpp