harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2345) [drlvm][performance][jit,ia32]Float-to-int conversion optimized + minor peephole things
Date Mon, 11 Dec 2006 07:48:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2345?page=all ]

Alexey Varlamov resolved HARMONY-2345.

    Resolution: Fixed

Applied at r485540.
observed more than 2x boost on the microbenchmark on 32 bit (beeting RI 2x, yay!) and no effect
on x64. 

> [drlvm][performance][jit,ia32]Float-to-int conversion optimized + minor peephole things
> ---------------------------------------------------------------------------------------
>                 Key: HARMONY-2345
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2345
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Alex Astapchuk
>         Assigned To: Alexey Varlamov
>         Attachments: 0001-Peephole-op9n-for-IA-32-Intel64-CG-and-inlined-D2I-F2I.txt,
test_f2i_speed.class, test_f2i_speed.java
> Attached patch introduces a better  float-to-int conversion (inlined rather per helper
call)  for IA-32/Intel64 codegenerator.
> Plus, it adds minor peephole optimizations like alternative instructions selected for
loading zero constants, ALU operations and SSE registers move.
> The provided optimization provides speedup for float & integer compuation intensive
> An example may be multimedia apps like audio stream encoding/decoding.
> A simple test to measure the performance boost attached. 
> On my Win32/Xeon machine it gives 60% (906ms => 562ms).
> NOTE: YMMV, this is a microbenchmark targeted to the particular optimization.
> On real apps, the speedup may be less depending on app characteristics.
> To check the boost, use:
> # optimization OFF
> java -Djit.arg.codegen.peephole=off test_f2i_speed
> # optimization ON
> java -Djit.arg.codegen.peephole=on test_f2i_speed
> Passed 'build test' on Win32/Lin32/Lin64

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message