Message ID | 20101123155212.GA8618@redhat.com |
---|---|
State | New |
Headers | show |
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~
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); }