harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2984) [drlvm][jit] More peephole optimizations implemented: IMUL and AND+CMP->TEST
Date Mon, 29 Jan 2007 14:19:49 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468289
] 

Mikhail Fursov commented on HARMONY-2984:
-----------------------------------------

Thanks Alex,
this is a review I was waiting for.
I'm going to update the patch tomorrow.

> [drlvm][jit] More peephole optimizations implemented: IMUL and AND+CMP->TEST
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-2984
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2984
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Mikhail Fursov
>         Assigned To: Alexey Varlamov
>         Attachments: peephole.diff
>
>
> This patch adds 2 new peephole optimizations
> 1) IMUL 0, 1, 2 or power of 2 is simplified to ADD, MOV or SHIFT. This can not be done
in HLO because these constants appears during HIR->LIR translation
> 2) AND, CMP, JZ sequence is simplified to TEST, JZ
> Linux guru, please check min/max bit asm functions in my patch. What do you think, should
we use platform independed but slow algorithms here instead of asm?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message