OSDN Git Service

[AMDGPU] Added target-specific attribute amdgpu-max-memory-clause
authorTim Renouf <tpr.llvm@botech.co.uk>
Thu, 30 May 2019 18:46:34 +0000 (18:46 +0000)
committerTim Renouf <tpr.llvm@botech.co.uk>
Thu, 30 May 2019 18:46:34 +0000 (18:46 +0000)
commitae0814d7693f10bf0418908b12edd51770647894
treee73d23834dcc8fd47a11e15eb844559c2acbf8e3
parent6a170699ae485c39be9e004d27becda1aa6b44c5
[AMDGPU] Added target-specific attribute amdgpu-max-memory-clause

With LLPC, previous investigation has suggested that si-scheduler
interacts badly with SiFormMemoryClauses on an XNACK target in some
games.

That needs further investigation in the future. In the meantime, this
commit adds a target-specific attribute to allow us to disable
SIFormMemoryClauses by setting it to 1 on a per-function basis for LLPC
to use.

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

Change-Id: Ia0ca12ce79093cbbe86caded723ffb13384ede92

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362127 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFormMemoryClauses.cpp
test/CodeGen/AMDGPU/disable_form_clauses.ll [new file with mode: 0644]