public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-3657] [omp, ftracer] Ignore IFN_GOMP_SIMT_XCHG_* in ignore_bb_p
@ 2020-10-05 14:10 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2020-10-05 14:10 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:717e402dbf55e7da83d4fc87641ab9e60d4846cb

commit r11-3657-g717e402dbf55e7da83d4fc87641ab9e60d4846cb
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Oct 5 14:26:04 2020 +0200

    [omp, ftracer] Ignore IFN_GOMP_SIMT_XCHG_* in ignore_bb_p
    
    As IFN_GOMP_SIMT_XCHG_* are part of the group marked by
    IFN_GOMP_SIMT_ENTER_ALLOC/IFN_GOMP_SIMT_EXIT, handle them conservatively
    in ignore_bb_p.
    
    Build on x86_64-linux with nvptx accelerator, tested with libgomp.
    
    gcc/ChangeLog:
    
    2020-10-05  Tom de Vries  <tdevries@suse.de>
    
            * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_XCHG_*.

Diff:
---
 gcc/tracer.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gcc/tracer.c b/gcc/tracer.c
index 5ee66511f8d..7f32ccb7e21 100644
--- a/gcc/tracer.c
+++ b/gcc/tracer.c
@@ -115,12 +115,14 @@ ignore_bb_p (const_basic_block bb)
 
       /* An IFN_GOMP_SIMT_ENTER_ALLOC/IFN_GOMP_SIMT_EXIT call must be
 	 duplicated as part of its group, or not at all.
-	 The IFN_GOMP_SIMT_VOTE_ANY is part of such a group, so the same holds
-	 there.  */
+	 The IFN_GOMP_SIMT_VOTE_ANY and IFN_GOMP_SIMT_XCHG_* are part of such a
+	 group, so the same holds there.  */
       if (is_gimple_call (g)
 	  && (gimple_call_internal_p (g, IFN_GOMP_SIMT_ENTER_ALLOC)
 	      || gimple_call_internal_p (g, IFN_GOMP_SIMT_EXIT)
-	      || gimple_call_internal_p (g, IFN_GOMP_SIMT_VOTE_ANY)))
+	      || gimple_call_internal_p (g, IFN_GOMP_SIMT_VOTE_ANY)
+	      || gimple_call_internal_p (g, IFN_GOMP_SIMT_XCHG_BFLY)
+	      || gimple_call_internal_p (g, IFN_GOMP_SIMT_XCHG_IDX)))
 	return true;
     }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-05 14:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-05 14:10 [gcc r11-3657] [omp, ftracer] Ignore IFN_GOMP_SIMT_XCHG_* in ignore_bb_p Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).