Two changes:
authorChris Lattner <sabre@nondot.org>
Wed, 4 Feb 2004 21:33:42 +0000 (21:33 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Feb 2004 21:33:42 +0000 (21:33 +0000)
commitc1df7e1799a7a97602bdedec818f7ab1dc514b4e
treefb568ce7b51c6167935aa4a39635e3776957157e
parentf0339396c1433d4995102f1963c9e5e3ecb60c45
Two changes:
  1. Don't scan to the end of alloca instructions in the caller function to
     insert inlined allocas, just insert at the top.  This saves a lot of
     time inlining into functions with a lot of allocas.
  2. Use splice to move the alloca instructions over, instead of remove/insert.
     This allows us to transfer a block at a time, and eliminates a bunch of
     silly symbol table manipulations.

This speeds up the inliner on the testcase in PR209 from 1.73s -> 1.04s (67%)

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