R600: Fix calculation of stack offset in AMDGPUFrameLowering
authorTom Stellard <thomas.stellard@amd.com>
Fri, 7 Jun 2013 20:52:05 +0000 (20:52 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 7 Jun 2013 20:52:05 +0000 (20:52 +0000)
commitdf74b86e1e9ee32e08c22f7eef51da0b65ec053d
tree799aa55a74f49e7dc1c5467bf9a6521588cb4fa0
parentfc61b6f111af79662baf273c40593a1e8f4dc719
R600: Fix calculation of stack offset in AMDGPUFrameLowering

We weren't computing structure size correctly and we were relying on
the original alloca instruction to compute the offset, which isn't
always reliable.

Reviewed-by: Vincent Lejeune <vljn@ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183568 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUFrameLowering.cpp
test/CodeGen/R600/indirect-addressing.ll