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

login
register
mail settings
Submitter Aldy Hernandez
Date Nov. 23, 2010, 3:52 p.m.
Message ID <20101123155212.GA8618@redhat.com>
Download mbox | patch
Permalink /patch/72692/
State New
Headers show

Comments

Aldy Hernandez - Nov. 23, 2010, 3:52 p.m.
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.
Richard Henderson - Nov. 24, 2010, 12:17 a.m.
On 11/23/2010 07:52 AM, Aldy Hernandez wrote:
> 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.

Ok.


r~

Patch

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);
     }