Sink: Don't sink static allocas from the entry block
authorTom Stellard <thomas.stellard@amd.com>
Fri, 21 Mar 2014 15:51:51 +0000 (15:51 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 21 Mar 2014 15:51:51 +0000 (15:51 +0000)
commit1b05bb2900d8bb69818ab13e0851a5b43642d2c7
treede8903f7a79cda6e284195df8dbde405b82ce433
parent20115c69f50e9fd787ad7d0aae1d1b0d17a20e3d
Sink: Don't sink static allocas from the entry block

CodeGen treats allocas outside the entry block as dynamically sized
stack objects.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204473 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Sink.cpp
test/Transforms/Sink/basic.ll