[PowerPC] Mark fixed-offset byvals as pointed-to by IR values
authorHal Finkel <hfinkel@anl.gov>
Sat, 16 Aug 2014 00:17:05 +0000 (00:17 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 16 Aug 2014 00:17:05 +0000 (00:17 +0000)
commit5dc48ac04a204bf2608af867cdf3ee946f0724ca
tree0a31141c5f47d6a697affe19835c587450131416
parent227df4bca09d43b372c5f38790af735a92f67b6c
[PowerPC] Mark fixed-offset byvals as pointed-to by IR values

A byval object, even if allocated at a fixed offset (prescribed by the ABI) is
pointed to by IR values. Most fixed-offset stack objects are not pointed-to by
IR values, so the default is to assume this is not possible. However, we need
to override the default in this case (instruction scheduling can cause
miscompiles otherwise).

Fixes PR20280.

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