summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-06-02 17:40:26 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-06-02 17:40:26 +0000
commitbe6c0ca5e2fc352d9fae71adc88ec91603fd2b48 (patch)
tree0fb505f476065396640e585a6a03ee45416734ab /llvm/lib/Target/AMDGPU/SIInsertWaits.cpp
parentd9a4491b0a05a70733a80622d29a49d79210622a (diff)
downloadbcm5719-llvm-be6c0ca5e2fc352d9fae71adc88ec91603fd2b48.tar.gz
bcm5719-llvm-be6c0ca5e2fc352d9fae71adc88ec91603fd2b48.zip
AMDGPU: Make auto waitcnt before barrier a feature
Differential Revision: https://reviews.llvm.org/D33793 llvm-svn: 304571
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIInsertWaits.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIInsertWaits.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp
index 9f32ecfa52f..bc86515d8b1 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp
@@ -630,7 +630,7 @@ bool SIInsertWaits::runOnMachineFunction(MachineFunction &MF) {
// but we also want to wait for any other outstanding transfers before
// signalling other hardware blocks
if ((I->getOpcode() == AMDGPU::S_BARRIER &&
- ST->needWaitcntBeforeBarrier()) ||
+ !ST->hasAutoWaitcntBeforeBarrier()) ||
I->getOpcode() == AMDGPU::S_SENDMSG ||
I->getOpcode() == AMDGPU::S_SENDMSGHALT)
Required = LastIssued;
OpenPOWER on IntegriCloud