Fix a bug I noticed by inspection: if the first instruction in the inlined
authorChris Lattner <sabre@nondot.org>
Fri, 13 Jan 2006 18:16:48 +0000 (18:16 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Jan 2006 18:16:48 +0000 (18:16 +0000)
commit21f20558d629f7ff8f64c20746d890d29328a544
treea48365b66fa9c80a4aaea9a64383cd0113b319a9
parent8acb249725e3304aafe91d5357f69722957c51b1
Fix a bug I noticed by inspection: if the first instruction in the inlined
function was not an alloca, we wouldn't check the entry block for any allocas,
leading to increased stack space in some cases.  In practice, allocas are almost
always at the top of the block, so this was never noticed.

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