I use normalizeAsm and denormalizeAsm and all works, but only on O1 mode,
but not in O2 and O3. My impl:

function pgo(ast) {
  var PATCHED_FUNCS = set();
  traverseGeneratedFunctions(ast, function(func) {
    var sig = func[1];
    if (sig in PATCHED_FUNCS) return null;
    var asmData = normalizeAsm(func);
    func[3].unshift(['call', ['name', 'PGO_INVOKE'], [['string', sig]]]);
    denormalizeAsm(func, asmData);
    PATCHED_FUNCS[sig] = 1;
  });
}

I found that after enable PGO=1, the PGOMonitor still generates, and
PGOMonitor.allGenerated contains about 10 functions. What is a best way to
fill PGOMonitor with names of generated functions

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to