R600/SI: Don't store scratch buffer frame index in MUBUF offset field
authorTom Stellard <thomas.stellard@amd.com>
Tue, 20 Jan 2015 17:49:43 +0000 (17:49 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 20 Jan 2015 17:49:43 +0000 (17:49 +0000)
commit805806952903902f01785e57a20a953a595cbeef
tree53967910027b1e11fdc5ed915f7a9f118c3cf05a
parent1106b1c66243ca54b8adc671432c6b0c13564a74
R600/SI: Don't store scratch buffer frame index in MUBUF offset field

We don't have a good way of legalizing this if the frame index offset
is more than the 12-bits, which is size of MUBUF's offset field, so
now we store the frame index in the vaddr field.

llvm-svn: 226584
llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp
llvm/test/CodeGen/R600/scratch-buffer.ll [new file with mode: 0644]