Request for reviews (L): 6814842: Load shortening optimizations

Christian Thalinger Christian.Thalinger at Sun.COM
Thu May 7 06:55:48 PDT 2009


On Thu, 2009-05-07 at 15:40 +0200, Ulf Zibis wrote:
> Hi Christian,
> 
> is there any Bug ID about load widening optimizations?

Yes.

> E.g.:
>     char decode(byte b) {
>         return (char)(b & 0xFF);
>     }

This is handled by HotSpot for a long time.

>     void decode(byte[] ba, char[] ca) {
>         for (int i=0; i<ba.length; i++)
>             ca[i] = (char)(ba[i] & 0xFF);
>     }

And this is covered by 6797305.

-- Christian




More information about the hotspot-compiler-dev mailing list