minor improvement in CLangCompileModelHelper<Base>::prepareSparseHessianWithLoops()