OSDN Git Service

[SROA] Teach SROA how to handle pointers from address spaces other than
authorChandler Carruth <chandlerc@gmail.com>
Wed, 26 Feb 2014 08:25:02 +0000 (08:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 26 Feb 2014 08:25:02 +0000 (08:25 +0000)
commit5b95cec37c7370c5afb4f05c161f1f269f660fe2
tree766123b290718be77735b7e2a37ce5d2af4dfece
parent38e90e3de1c05ccfd469275c08d403f638cdcce1
[SROA] Teach SROA how to handle pointers from address spaces other than
the default.

Based on the patch by Matt Arsenault, D1764!

I switched one place to use the more direct pointer type to compute the
desired address space, and I reworked the memcpy rewriting section to
reflect significant refactorings that this patch helped inspire.

Thanks to several of the folks who helped review and improve the patch
as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202247 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/address-spaces.ll [new file with mode: 0644]
test/Transforms/SROA/basictest.ll
test/Transforms/SROA/vector-promotion.ll