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/12 09:38:59 UTC

[Harmony Wiki] Update of "Jitrino OPT/btr" 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/btr

New page:
''' 'btr' ''' LIR transformation replaces branch instructions with conditional CMOVcc or SETcc instructions
[[BR]]
The algorithm takes one-pass over CFG.
[[BR]]
The transformation allows to reduce count of branches and is recommended to be inserted before other LIR transformations
[[BR]]

The algorithm works as follows:    
{{{
     1)    Finds branch instruction which performs branch to basic blocks with
         only instructions MOV with the same def-operand.
 
     2)    If each of thus blocks has only one predecessor they and branch 
         instruction is replaced with conditional instruction
 }}}