[trans-mem] Do not instrument thread locals
Andi Kleen
andi@firstfloor.org
Wed Jan 25 23:40:00 GMT 2012
> And it's entirely likely that I'd thought of exactly that two years
> ago when the DECL_THREAD_LOCAL test was omitted from that bit of code,
> but I failed to add a comment.
>
> I guess this patch needs to be reverted...
It may be still a valid optimization, but only if you know there
is no escapes of a static thread variable. But I didn't think
this is known at this point.
I suspect this would require adding another pass for this later in the
optimization pipeline.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.
More information about the Gcc-patches
mailing list