You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by Apache Wiki <wi...@apache.org> on 2008/05/13 10:31:03 UTC

[Harmony Wiki] Update of "Jitrino OPT/edge annotate" by Mikhail Fursov

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Harmony Wiki" for change notification.

The following page has been changed by Mikhail Fursov:
http://wiki.apache.org/harmony/Jitrino_OPT/edge_annotate

New page:
''' 'edge_annotate' ''' - annotates HIR with profile information collected by edge profiler
[[BR]][[BR]]

The optimization reads profile information from collected by [http://harmony.apache.org/subcomponents/drlvm/EM.html#PC edge profile collector] and sets execution count and edge probability values for every node and edge in Control Flow Graph.
[[BR]][[BR]]
There are 2 ways of mapping of profile information to the methods IR:
[[BR]]
1) IR based profile mapping
[[BR]]
2) Bytecode based profile mapping
[[BR]][[BR]]
To use IR based profile mapping compiler must ensure that the IR of the method is the same as it was during [:Jitrino_OPT/edge_instrument: edge_instrument] phase.
[[BR]][[BR]]
Bytecode based profile mapping is compiler independent. The 'key' for a counter is a 32-bit value composed from 16-bit offsets in bytecode: jump-offset and target-offset.