modified AST profiling to mark (and fully skip) non-optimizable functions

This commit is contained in:
Vern Paxson 2024-12-06 16:17:44 -08:00
parent 7ed3f79c87
commit 62f891dcba
2 changed files with 5 additions and 0 deletions

View file

@ -397,6 +397,9 @@ static void use_CPP() {
auto pfs = std::make_unique<ProfileFuncs>(funcs, is_CPP_compilable, true, false);
for ( auto& f : funcs ) {
if ( f.ShouldSkip() )
continue;
auto hash = f.Profile()->HashVal();
auto s = compiled_scripts.find(hash);