]> granicus.if.org Git - llvm/commit
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)
commita0dd2b4df806ba1cd0c0b723c616823f27c2c7ba
treea35777bc2e305fc34b281853c184f09358fd5564
parent013041ad5c21a8889faeaa569e3d1c1575c21762
CodeGenPrepare: Don't match addressing modes through addrspacecast

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238217 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/R600/no-sink-addrspacecast.ll [new file with mode: 0644]