[PowerPC] Make AddrSpaceCast noop
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 19 Mar 2018 18:50:02 +0000 (18:50 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 19 Mar 2018 18:50:02 +0000 (18:50 +0000)
commitd9d5bd3067a6cb8d036514d9f74079d1c8ad7ef9
tree8412c3e1c4c878fb2f43ef754efdf3e45383d728
parentd03bc7c26a0cf882ca642c3989d487321ce34484
[PowerPC] Make AddrSpaceCast noop

PowerPC targets do not use address spaces. As a result, we can get selection
failures with address space casts. This patch makes those casts noops.

Patch by Valentin Churavy.

Differential revision: https://reviews.llvm.org/D43781

llvm-svn: 327877
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/test/CodeGen/PowerPC/addrspacecast.ll [new file with mode: 0644]