OSDN Git Service

[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)
commitf20165913ca43ba415288a41e9c7a1b257f09776
tree449dc4d86d80fe578a01dd81d8952cb25908177d
parent8bb77ddd946e8046805c24d2c0529184030af0b1
[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

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