In BasicBlock::splitBasicBlock, just use islist::splice to move the instructions,
authorChris Lattner <sabre@nondot.org>
Tue, 3 Feb 2004 23:11:21 +0000 (23:11 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Feb 2004 23:11:21 +0000 (23:11 +0000)
commitf2c3106866137b0c06e99f453a83d9558c0c6934
treeda7809128b7baa1545dd2f69ce6a5ddca44b904e
parent6a8c2907b0721ce53ad6887be5b10eef50dac060
In BasicBlock::splitBasicBlock, just use islist::splice to move the instructions,
instead of a loop that is really inefficient with large basic blocks.

This speeds up the inliner pass on the testcase in PR209 from 13.8s to 2.24s
which still isn't exactly speedy, but is a lot better.  :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/BasicBlock.cpp