summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMark Searles <m.c.searles@gmail.com>2017-05-30 16:22:43 +0000
committerMark Searles <m.c.searles@gmail.com>2017-05-30 16:22:43 +0000
commit00ce96f6eed8559c7bbb90768a782ca0cc3c47ea (patch)
treed514267920406bea0edfa4c3e573eb87b2c849ef /llvm/lib
parent95b64a982694b183890d902bc5cc76827fb09679 (diff)
downloadbcm5719-llvm-00ce96f6eed8559c7bbb90768a782ca0cc3c47ea.tar.gz
bcm5719-llvm-00ce96f6eed8559c7bbb90768a782ca0cc3c47ea.zip
[AMDGPU] Require waitcnt before barrier for all targets; adjust tests.
Differential Revision: https://reviews.llvm.org/D33576 llvm-svn: 304217
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
index 66087942681..0582ce95693 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
@@ -730,7 +730,7 @@ public:
/// \returns True if waitcnt instruction is needed before barrier instruction,
/// false otherwise.
bool needWaitcntBeforeBarrier() const {
- return getGeneration() < GFX9;
+ return true;
}
/// \returns true if the flat_scratch register should be initialized with the
OpenPOWER on IntegriCloud