diff mbox

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

Message ID 20101123155212.GA8618@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez Nov. 23, 2010, 3:52 p.m. UTC
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.

Comments

Richard Henderson Nov. 24, 2010, 12:17 a.m. UTC | #1
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~
diff mbox

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