Fix pointer info on PPC byval stores
authorHal Finkel <hfinkel@anl.gov>
Tue, 21 Jan 2014 20:15:58 +0000 (20:15 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 21 Jan 2014 20:15:58 +0000 (20:15 +0000)
commitda3446099d8e17d75f36fc78c88db1646469ddaf
treeb6c32c098d4e714da12086cbabd52dcbc4b0086a
parenta747cf1c4d740dfe5fd1b3cd1b3d43251892457a
Fix pointer info on PPC byval stores

For PPC64 SVR (and Darwin), the stores that take byval aggregate parameters
from registers into the stack frame had MachinePointerInfo objects with
incorrect offsets. These offsets are relative to the object itself, not to the
stack frame base.

This fixes self hosting on PPC64 when compiling with -enable-aa-sched-mi.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199763 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/byval-agg-info.ll [new file with mode: 0644]