When SRoA'ing a global variable, make sure the new globals get the
authorChris Lattner <sabre@nondot.org>
Sat, 26 Apr 2008 07:40:11 +0000 (07:40 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 26 Apr 2008 07:40:11 +0000 (07:40 +0000)
commit998182b3802d2be8d081ca484b5d4fd5e1188950
treee48bcd8cb6915f866189ae09b1aedd8a0afd182c
parentaea6a6f71737c193456f83211ac636197c0f8694
When SRoA'ing a global variable, make sure the new globals get the
appropriate alignment.  This fixes a miscompilation of 252.eon on
x86-64 (rdar://5891920).

Bill, please pull this into Tak.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50308 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/2008-04-26-SROA-Global-Align.ll [new file with mode: 0644]