This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[trans-mem] PR45940: respect pure annotations in STL


If the user said the caller was TM-pure, respect it, similarly to what
we do with TM-safe annotated functions.

OK for branch?

	PR/45940
	* trans-mem.c (ipa_tm_execute): Do not push caller into worklist
	if it is tm_pure.

Index: trans-mem.c
===================================================================
--- trans-mem.c	(revision 166949)
+++ trans-mem.c	(working copy)
@@ -4513,6 +4513,7 @@ ipa_tm_execute (void)
 
       for (e = node->callers; e ; e = e->next_caller)
 	if (!is_tm_safe (e->caller->decl)
+	    && !is_tm_pure (e->caller->decl)
 	    && !e->caller->local.tm_may_enter_irr)
 	  maybe_push_queue (e->caller, &worklist, &d->in_worklist);
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]