[patch] shark llvm 2.6 JIT improved optimization level

Xerxes Rånby xerxes at zafena.se
Tue May 5 04:42:17 PDT 2009


Andrew Haley skrev:
> Xerxes Rånby wrote:
>   
>> The LLVM 2.6 JIT api have changed in order to give developers more
>> fine-grained control of the optimization level of the JIT.
>> http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-April/021990.html
>>
>> The attached patch enables Shark to compile against the current llvm 2.6
>> svn trunk.
>> ... and makes the shark a bit more aggressive.
>>
>> Suggestions are welcome.
>>     
>
> OK, I'll bite.  :-)
>
> This option should be accessible from the command line.
>
> Andrew.
>   
I have committed the patch with a change to make it use the same 
optimization level as before since shark currently only have one 
optimization level.

If we want to be able to use the command line to set the optimization 
level then it could be implemented in a number of ways:

We could add a new -XX option like -XX:SharkOptimization=Aggressive

We could as well make shark hotspot respond to the "standard" -client 
and -server options in order to set the optimization suitable for 
responsive user interaction or  bulk server throughput.

Cheers
Xerxes



More information about the distro-pkg-dev mailing list