Don't put non-static allocas in the static alloca map
authorReid Kleckner <reid@kleckner.net>
Fri, 31 Jan 2014 23:45:12 +0000 (23:45 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 31 Jan 2014 23:45:12 +0000 (23:45 +0000)
commitf10743d765c456db7c9cd2a9fe4c528d75bb5b8f
treef369c935c1a43d3cea904b1419db8aee9c0305ca
parent1cf770889fb526b7de5448c38c23182741be445f
Don't put non-static allocas in the static alloca map

Allocas marked inalloca are never static, but we were trying to put them
into the static alloca map if they were in the entry block.  Also add an
assertion in x86 fastisel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200593 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/dynamic-alloca-in-entry.ll [new file with mode: 0644]