llvmpipe: do IR counting for shader cache management after optimization.