R600/SI: Use DS offsets for constant addresses
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 14 Oct 2014 17:21:19 +0000 (17:21 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 14 Oct 2014 17:21:19 +0000 (17:21 +0000)
commit704b06ce61eb4623b97956d8112b3d9a38e1133f
tree798b13e5b7b79f9523b5a94afd11f789f832d757
parent8730dc16e98017b94edc5085ad9728ff67ea19c2
R600/SI: Use DS offsets for constant addresses

Use 0 as the base address for a constant address, so if
we have a constant address we can save moves and form
read2/write2s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219698 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelDAGToDAG.cpp
test/CodeGen/R600/ds_read2.ll
test/CodeGen/R600/ds_write2.ll