Big thread contention speedup -- testing the m_groups_to_compile_count atomic on every execution was hurting perf for simple shaders called very frequently (as happens for volume shading). Moving it to happen only when shaders are compiled, not every execution, and even then guarding it with the m_greedyjit (which is usually off) improves perf substantially for a certain kind of scene we're trying to speed up.
Big thread contention speedup -- testing the m_groups_to_compile_count
atomic on every execution was hurting perf for simple shaders called
very frequently (as happens for volume shading). Moving it to happen
only when shaders are compiled, not every execution, and even then
guarding it with the m_greedyjit (which is usually off) improves perf
substantially for a certain kind of scene we're trying to speed up.

mcanthony/OpenShadingLanguage,yaroslav-tarasov/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,aconty/OpenShadingLanguage,rlmh/OpenShadingLanguage,brechtvl/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,lgritz/OpenShadingLanguage,fpsunflower/OpenShadingLanguage,mcanthony/OpenShadingLanguage,imageworks/OpenShadingLanguage,rlmh/OpenShadingLanguage,imageworks/OpenShadingLanguage,Anteru/OpenShadingLanguage,brechtvl/OpenShadingLanguage,svenstaro/OpenShadingLanguage,svenstaro/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,brechtvl/OpenShadingLanguage,svenstaro/OpenShadingLanguage,mcanthony/OpenShadingLanguage,aconty/OpenShadingLanguage,lgritz/OpenShadingLanguage,fpsunflower/OpenShadingLanguage,sjparker/OpenShadingLanguage,brechtvl/OpenShadingLanguage,gzorin/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,mcanthony/OpenShadingLanguage,yaroslav-tarasov/OpenShadingLanguage,rlmh/OpenShadingLanguage,yaroslav-tarasov/OpenShadingLanguage,fpsunflower/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,Anteru/OpenShadingLanguage,imageworks/OpenShadingLanguage,Anteru/OpenShadingLanguage,juvenal/OpenShadingLanguage,gzorin/OpenShadingLanguage,Anteru/OpenShadingLanguage,gzorin/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,imageworks/OpenShadingLanguage,brechtvl/OpenShadingLanguage,sjparker/OpenShadingLanguage,juvenal/OpenShadingLanguage,imageworks/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,aconty/OpenShadingLanguage,svenstaro/OpenShadingLanguage,sjparker/OpenShadingLanguage,juvenal/OpenShadingLanguage,gzorin/OpenShadingLanguage,juvenal/OpenShadingLanguage,fpsunflower/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,lgritz/OpenShadingLanguage,aconty/OpenShadingLanguage,sjparker/OpenShadingLanguage,lgritz/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,aconty/OpenShadingLanguage,gzorin/OpenShadingLanguage,yaroslav-tarasov/OpenShadingLanguage,rlmh/OpenShadingLanguage,lgritz/OpenShadingLanguage