CodeGenPrepare: Don't match addressing modes through addrspacecast
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 26 May 2015 16:59:43 +0000 (16:59 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 26 May 2015 16:59:43 +0000 (16:59 +0000)
commitf05b02351fb06a4f7bfae6b41ff9f79538b36260
tree50c0f02bdc214b34b6944a28a9c7c6ba94f5e574
parent9e6eb48f7786b528934108b636cc0e7357cd8d64
CodeGenPrepare: Don't match addressing modes through addrspacecast

This was resulting in the addrspacecast being removed and incorrectly
replaced with a ptrtoint when sinking.

llvm-svn: 238217
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/Transforms/CodeGenPrepare/R600/no-sink-addrspacecast.ll [new file with mode: 0644]