R600/SI: Reimplement isLegalAddressingMode
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 4 Jun 2015 16:17:42 +0000 (16:17 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 4 Jun 2015 16:17:42 +0000 (16:17 +0000)
commit35cc03a1ea2b82ebceef0970a5fab9009388f10d
tree65f711540fa2e01d540600366c60805796152f96
parent013ef5971375083affed984b1355fef7f6623809
R600/SI: Reimplement isLegalAddressingMode

Now that we sometimes know the address space, this can
theoretically do a better job.

This needs better test coverage, but this mostly depends on
first updating the loop optimizatiosn to provide the address
space.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239053 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPU.h
lib/Target/R600/SIISelLowering.cpp
test/CodeGen/R600/cgp-addressing-modes.ll [new file with mode: 0644]