> 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

-- 
a...@linux.intel.com -- Speaking for myself only.

Reply via email to