OSDN Git Service

AMDGPU: Fix dropping memref for ds append/consume
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 14 Jun 2019 21:01:24 +0000 (21:01 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 14 Jun 2019 21:01:24 +0000 (21:01 +0000)
commite8143703706be572fdb0b0a233ba0025030819a0
treeaea9be74aac159812cbc34a6a518ae642596c485
parent4466eeb2849a0641d2e25d3e3a165e1cbe9c269a
AMDGPU: Fix dropping memref for ds append/consume

The way SelectionDAG treats memory operands is very frustrating, and
by default drops them unless a property is set on the pattern. There
is no pattern for manually selected instructions, so this requires
manually setting them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363455 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
test/CodeGen/AMDGPU/llvm.amdgcn.ds.append.ll
test/CodeGen/AMDGPU/llvm.amdgcn.ds.consume.ll