[nvptx] Add workaround for subsequent bar.syncs
authorTom de Vries <tom@codesourcery.com>
Sat, 5 May 2018 07:56:21 +0000 (07:56 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 5 May 2018 07:56:21 +0000 (07:56 +0000)
commit212513950ca0f5269b8e298a8b4c9a0982543449
tree243bca933962f6c7d832878ab46835a9a3f46402
parent39d8c7d2c1104ee8e9e19dec0c3a4973805fdb9e
[nvptx] Add workaround for subsequent bar.syncs

2018-05-05  Tom de Vries  <tom@codesourcery.com>

PR target/85653
* config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG_3): Define.
(workaround_barsyncs): New function.
(nvptx_reorg): Use workaround_barsyncs.
* config/nvptx/nvptx.md (define_c_enum "unspecv"): Add UNSPECV_MEMBAR.
(define_expand "nvptx_membar_cta"): New define_expand.
(define_insn "*nvptx_membar_cta"): New insn.

From-SVN: r259967
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
gcc/config/nvptx/nvptx.md