[nvptx] Add workaround for subsequent bar.syncs

Programming / Compilers / GCC - vries [138bc75d-0d04-0410-961f-82ee72b054a4] - 5 May 2018 07:56 EDT

2018-05-05 Tom de Vries

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.

19b20a5c437 [nvptx] Add workaround for subsequent bar.syncs
gcc/ChangeLog | 10 ++++++++++
gcc/config/nvptx/nvptx.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++
gcc/config/nvptx/nvptx.md | 17 ++++++++++++++++
3 files changed, 76 insertions(+)

Upstream: gcc.gnu.org


  • Share