[AMDGPU] Handle OR as operand of raw load/store
authorPiotr Sobczak <piotr.sobczak@amd.com>
Wed, 2 Jan 2019 09:47:41 +0000 (09:47 +0000)
committerPiotr Sobczak <piotr.sobczak@amd.com>
Wed, 2 Jan 2019 09:47:41 +0000 (09:47 +0000)
commit378131bae04e78062d4d2f158320b57804894ed8
treedf4a3afb7f9fac8bda6d1ebe7f8d4c8dcf8cf437
parent176388c973c4104630cb612d00e3fb060d08551f
[AMDGPU] Handle OR as operand of raw load/store

Summary:
Use isBaseWithConstantOffset() which handles OR as an operand
to llvm.amdgcn.raw.buffer.load and llvm.amdgcn.raw.buffer.store.

Change-Id: Ifefb9dc5ded8710d333df07ab1900b230e33539a

Reviewers: nhaehnle, mareko, arsenm

Reviewed By: arsenm

Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D55999

llvm-svn: 350208
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.load.ll
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.store.ll