harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoming Gu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5826) [drlvm][jit][opt][performance] Magic for java.math.Multiplication.unsignedMultAdd2
Date Thu, 18 Dec 2008 03:38:44 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Xiaoming Gu updated HARMONY-5826:

    Attachment: H5826-V6.zip

This message is for V6 patch. There are four parts in it.

1. Global propagation
    A complete solution for global propagation is a kind of overkill. I decided to stay with
the good enough basic solution. It's in Ia32GlobalPropagation.cpp. Please put this file in

2. 64-bit multiplication lower
    In Ia32I8Lowerer.cpp, a 64-bit mulitiplication used to be lowered serveral 32-bit operations
which are put into 3 basic blocks. Now it's changed that all generated 32-bit operations are
in a single basic block. This change is for peephole optimization on ADD.

3. Peephole optimization
    a. MUL - Previously only instruction with IMUL is optimized. Now the optimization for
MUL is added.
    b. ADD - Previously no peephole optimization for ADD. Now the optimization for ADD is
    c. Local propagation - Some MUL and ADD are optimized to MOV in peephole optimization.
The integrated local propagation could utilize these on-the-fly opportunities.

4. Emconf files
    Early_prop is replaced by global_prop in all server related emconf files.

Currently Harmony with this patch could pass most benchmarks in SPECjvm2008. Some fails but
I guess it is not the problem of this patch. crypto.rsa is improved more than 40% (from 208.98
to 305.56) and the optimized code of unsignedMultAddAdd() is as same as api magic did before.

> [drlvm][jit][opt][performance] Magic for java.math.Multiplication.unsignedMultAdd2
> ----------------------------------------------------------------------------------
>                 Key: HARMONY-5826
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5826
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Aleksey Shipilev
>         Attachments: H5826-V2.patch, H5826-V3.patch, H5826-V4.patch, H5826-V5.patch.zip,
H5826-V6.zip, vm-jit-math-unsignedMultAdd2-magic-rc1.patch
> Implementation of magic for java.math.Multiplication.unsignedMultAdd2, extracted in HARMONY-5825.

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

View raw message